#9F8727#9F8727
#9F8727 is a light, moderate yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.115 H 94.4°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #9F8727 |
|---|---|
| RGB | rgb(159, 135, 39) |
| HSL | hsl(48, 61%, 39%) |
| HSV | hsv(48, 75%, 62%) |
| CMYK | cmyk(0%, 15.1%, 75.5%, 37.6%) |
| CIE-LAB | lab(56.93, -1.28, 51.86) |
| CIE-LCH | lch(56.93, 51.88, 91.41°) |
| OKLab | oklab(62.83% -0.0089 0.1143) |
| OKLCH | oklch(62.83% 0.115 94.4) |
| XYZ | xyz(23.3295, 24.8467, 5.4861) |
| Luminance | 0.2485 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Diarrhea
#9F8303
ΔE00 2.78
Dark Mustard
#A88905
ΔE00 3.44
Yellowy Brown
#AE8B0C
ΔE00 4.43
Baby Poop
#937C00
ΔE00 4.54
Baby Shit Brown
#AD900D
ΔE00 4.58
Baby Poo
#AB9004
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9F8727 #273F9F
analogous
#9F4B27 #9F8727 #7B9F27
triadic
#9F8727 #279F87 #87279F
tetradic
#9F8727 #279F4B #273F9F #9F277B
square
#9F8727 #279F4B #273F9F #9F277B
split-complementary
#9F8727 #277B9F #4B279F
monochromatic
#3D340F #6E5D1B #9F8727 #CEAF36 #DAC367
Accessibility & contrast
On white
3.52
#9F8727 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.97
#9F8727 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #9F8727
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9F8727 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9F8727 | 1.00 | 3.52 | 5.97 | 5.97 |
| #FFFFFF | 3.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#968417
Deuteranopia (green-blind)
#9C8C2D
Tritanopia (blue-blind)
#AC7C74
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #9f8727; /* rgb */ color: rgb(159, 135, 39); /* oklch */ color: oklch(62.8% 0.115 94.4);
Tailwind
colors: {
custom: {
50: '#bfa968',
500: '#9f8727',
950: '#000000',
},
}SCSS
$custom: #9f8727; $custom-light: #bfa968; $custom-dark: #000000;
JSON
{
"hex": "#9f8727",
"rgb": {
"r": 159,
"g": 135,
"b": 39
},
"hsl": {
"h": 48,
"s": 60.606,
"l": 38.824
},
"oklch": {
"l": 0.62829,
"c": 0.1146,
"h": 94.4
},
"luminance": 0.24845
}Semantic roles & 50–950 ramp
primary
#9F8727
secondary
#6275C0
accent
#64E444
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A