#9F8918#9F8918
#9F8918 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.2% C 0.124 H 97.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8918 |
|---|---|
| RGB | rgb(159, 137, 24) |
| HSL | hsl(50, 74%, 36%) |
| HSV | hsv(50, 85%, 62%) |
| CMYK | cmyk(0%, 13.8%, 84.9%, 37.6%) |
| CIE-LAB | lab(57.40, -2.94, 57.29) |
| CIE-LCH | lch(57.40, 57.37, 92.94°) |
| OKLab | oklab(63.18% -0.015 0.1228) |
| OKLCH | oklch(63.18% 0.124 97) |
| XYZ | xyz(23.4099, 25.3295, 4.5200) |
| Luminance | 0.2533 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.60
Dark Mustard
#A88905
ΔE00 2.90
Baby Poo
#AB9004
ΔE00 3.41
Baby Shit Brown
#AD900D
ΔE00 3.65
Yellowy Brown
#AE8B0C
ΔE00 4.22
Baby Poop
#937C00
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8918 #182E9F
analogous
#9F4518 #9F8918 #719F18
triadic
#9F8918 #189F89 #89189F
tetradic
#9F8918 #189F45 #182E9F #9F1871
square
#9F8918 #189F45 #182E9F #9F1871
split-complementary
#9F8918 #18719F #45189F
monochromatic
#352D08 #6A5B10 #9F8918 #D4B720 #E4CC4D
Accessibility & contrast
On white
3.46
#9F8918 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.07
#9F8918 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8918
6.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8918 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8918 | 1.00 | 3.46 | 6.07 | 6.07 |
| #FFFFFF | 3.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9E8D21
Tritanopia (blue-blind)
#AC7E75
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #9f8918; /* rgb */ color: rgb(159, 137, 24); /* oklch */ color: oklch(63.2% 0.124 97.0);
Tailwind
colors: {
custom: {
50: '#c0ab62',
500: '#9f8918',
950: '#000000',
},
}SCSS
$custom: #9f8918; $custom-light: #c0ab62; $custom-dark: #000000;
JSON
{
"hex": "#9f8918",
"rgb": {
"r": 159,
"g": 137,
"b": 24
},
"hsl": {
"h": 50.222,
"s": 73.77,
"l": 35.882
},
"oklch": {
"l": 0.63176,
"c": 0.12372,
"h": 97
},
"luminance": 0.25328
}Semantic roles & 50–950 ramp
primary
#9F8918
secondary
#4D60C6
accent
#56F037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A