Brown color · XKCD survey name
Ocher Color Code: #BF9B0C
Ocher (#BF9B0C) is a medium-dark, vivid yellow shade: RGB 191, 155, 12, HSL 48°, 88%, 40%. Black text reads best on it (7.90:1 contrast).
Ocher color values
#BF9B0C
rgb(191, 155, 12)
hsl(48, 88%, 40%)
48, 94%, 75%
hwb(48 5% 25%)
0%, 19%, 94%, 25%
12557068
CMYK is a standard screen-to-print conversion. Printed results depend on inks, paper and color profiles.
What is Ocher?
“Ocher” is a crowd-sourced name from the XKCD Color Survey, in which participants typed names for colors they were shown. It is a popular everyday label rather than an official standard.
Its hue angle of 48° places it in the yellow part of the color wheel, with 88% saturation (vivid) and 40% lightness (medium-dark). It is a warm color.
Compared with the other brown colors in the Aqeeb Studio library, it is lighter than 43% of them and more saturated than 64% of them.
Its relative luminance is 0.345, which makes it a light color. That is above the 0.179 crossover point at which black and white text have equal contrast, so black text has the advantage.
Ocher counts as a light color: its HSL lightness is 40% and its relative luminance is 0.345. Black text reads best on it (7.90:1 contrast).
Text contrast on Ocher
| Text | Preview | Ratio | AA normal | AA large | AAA normal | AAA large |
|---|---|---|---|---|---|---|
| White text | Sample text | 2.65:1 Poor | Fail | Fail | Fail | Fail |
| Black text | Sample text | 7.90:1 Excellent | Pass | Pass | Pass | Pass |
Ratios use the WCAG 2 formula and are truncated, never rounded up. Test any pair with the contrast checker.
Colors that go with Ocher
Complementary color
Complementary colors sit directly opposite each other on the color wheel (180° apart). They give the strongest hue contrast, which suits calls to action and accents.
Analogous colors
Analogous colors are neighbors on the wheel, 30° either side of the base hue. They blend smoothly and are easy to combine in backgrounds, gradients and illustrations.
Triadic colors
A triadic scheme uses three hues spaced 120° apart. It is lively yet balanced, and works best when one color leads and the other two act as accents.
Split-complementary colors
Split-complementary keeps the base color and uses the two colors on either side of its complement (150° and 210°). The contrast is strong but gentler than a direct complement.
Tetradic colors
A tetradic (rectangle) scheme combines two complementary pairs at 0°, 60°, 180° and 240°. It offers variety but needs one dominant color to stay balanced.
Monochromatic variants
Monochromatic variants keep the same hue and saturation and only change lightness, which makes them dependable for UI scales and subtle layered designs.
A “≈” before a name means the exact harmony color has no named match, so the link goes to the closest named color.
Tints and shades of Ocher
Lighter tints (mixed with white)
Darker shades (mixed with black)
Select any swatch to copy its HEX code. Build longer scales with the tints and shades tool.
Similar colors
Where to use Ocher
- Card, highlight and section backgrounds with dark text (7.90:1 contrast with black)
- Accents that need to stand out: call-to-action buttons, charts and illustrations
- Warm neutrals alongside cream and green
- Borders, wood-like textures and illustrations
- Earthy, natural palettes
- Packaging and craft-style layouts
Use Ocher in CSS
:root {
--color-ocher: #BF9B0C;
}
.element {
color: var(--color-ocher);
background-color: #BF9B0C;
border: 2px solid #BF9B0C;
}
Questions about Ocher
What is the HEX code for Ocher?
Ocher is #BF9B0C.
What is the RGB value of Ocher?
The RGB value of Ocher is 191, 155, 12: 191 red, 155 green and 12 blue on a 0–255 scale, written rgb(191, 155, 12) in CSS.
What is the HSL value of Ocher?
The HSL value of Ocher is 48°, 88%, 40% (hue, saturation, lightness), written hsl(48, 88%, 40%) in CSS.
What is the CMYK value of Ocher?
A standard conversion gives about C 0%, M 19%, Y 94%, K 25%. Real print results depend on the inks, paper and color profile, so treat CMYK here as a reference value.
Is Ocher a light or dark color?
Ocher counts as a light color: its HSL lightness is 40% and its relative luminance is 0.345. Black text reads best on it (7.90:1 contrast).
How does Ocher look with white text?
White text on Ocher has a contrast ratio of 2.65:1, rated Poor. It falls below the WCAG minimum for text.
How does Ocher look with black text?
Black text on Ocher has a contrast ratio of 7.90:1, rated Excellent. It meets WCAG AA for normal text.
What colors go well with Ocher?
Indigo Blue is its complementary color, and Brick Orange sits beside it as an analogous color. Lighter and darker variants of the same hue also work well for monochromatic palettes.
Where can Ocher be used?
It suits card, highlight and section backgrounds with dark text (7.90:1 contrast with black); accents that need to stand out: call-to-action buttons, charts and illustrations; warm neutrals alongside cream and green.
How do I use Ocher in CSS?
Use color: #BF9B0C; for text, background-color: #BF9B0C; for fills, or define a custom property such as --color-ocher: #BF9B0C; and reuse it with var(--color-ocher).
About this color page
Crowd-sourced name from the XKCD Color Survey (CC0). Values are calculated from the HEX code; color names are labels, not trademarks or standards unless stated. Screens render colors differently, so always check important colors on your own device. See the disclaimer.