#9F8A1B#9F8A1B
#9F8A1B is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.123 H 97.5°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8A1B |
|---|---|
| RGB | rgb(159, 138, 27) |
| HSL | hsl(50, 71%, 36%) |
| HSV | hsv(50, 83%, 62%) |
| CMYK | cmyk(0%, 13.2%, 83%, 37.6%) |
| CIE-LAB | lab(57.68, -3.40, 56.68) |
| CIE-LCH | lch(57.68, 56.78, 93.43°) |
| OKLab | oklab(63.41% -0.0161 0.1221) |
| OKLCH | oklch(63.41% 0.123 97.5) |
| XYZ | xyz(23.5857, 25.6283, 4.7411) |
| Luminance | 0.2563 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 3.04
Dark Mustard
#A88905
ΔE00 3.19
Baby Poo
#AB9004
ΔE00 3.41
Baby Shit Brown
#AD900D
ΔE00 3.67
Yellowy Brown
#AE8B0C
ΔE00 4.44
Baby Poop
#937C00
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8A1B #1B309F
analogous
#9F481B #9F8A1B #729F1B
triadic
#9F8A1B #1B9F8A #8A1B9F
tetradic
#9F8A1B #1B9F48 #1B309F #9F1B72
square
#9F8A1B #1B9F48 #1B309F #9F1B72
split-complementary
#9F8A1B #1B729F #481B9F
monochromatic
#362F09 #6B5D12 #9F8A1B #D3B724 #E2CB53
Accessibility & contrast
On white
3.43
#9F8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.13
#9F8A1B on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8A1B
6.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8A1B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8A1B | 1.00 | 3.43 | 6.13 | 6.13 |
| #FFFFFF | 3.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9E8E24
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B
Design tokens & code
CSS
--color: #9f8a1b; /* rgb */ color: rgb(159, 138, 27); /* oklch */ color: oklch(63.4% 0.123 97.5);
Tailwind
colors: {
custom: {
50: '#c0ab63',
500: '#9f8a1b',
950: '#000000',
},
}SCSS
$custom: #9f8a1b; $custom-light: #c0ab63; $custom-dark: #000000;
JSON
{
"hex": "#9f8a1b",
"rgb": {
"r": 159,
"g": 138,
"b": 27
},
"hsl": {
"h": 50.455,
"s": 70.968,
"l": 36.471
},
"oklch": {
"l": 0.63408,
"c": 0.12312,
"h": 97.5
},
"luminance": 0.25627
}Semantic roles & 50–950 ramp
primary
#9F8A1B
secondary
#5164C5
accent
#57EE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A