#AF9F27#AF9F27
#AF9F27 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.6% C 0.133 H 101.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9F27 |
|---|---|
| RGB | rgb(175, 159, 39) |
| HSL | hsl(53, 64%, 42%) |
| HSV | hsv(53, 78%, 69%) |
| CMYK | cmyk(0%, 9.1%, 77.7%, 31.4%) |
| CIE-LAB | lab(65.01, -7.07, 59.97) |
| CIE-LCH | lch(65.01, 60.39, 96.72°) |
| OKLab | oklab(69.6% -0.0262 0.1308) |
| OKLCH | oklch(69.6% 0.133 101.3) |
| XYZ | xyz(30.4450, 34.0581, 6.8893) |
| Luminance | 0.3406 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 3.95
Puke
#A5A502
ΔE00 4.77
Muddy Yellow
#BFAC05
ΔE00 4.90
Vomit
#A2A415
ΔE00 4.99
Baby Poo
#AB9004
ΔE00 5.34
Baby Shit Brown
#AD900D
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9F27 #2737AF
analogous
#AF5B27 #AF9F27 #7BAF27
triadic
#AF9F27 #27AF9F #9F27AF
tetradic
#AF9F27 #27AF5B #2737AF #AF277B
square
#AF9F27 #27AF5B #2737AF #AF277B
split-complementary
#AF9F27 #277BAF #5B27AF
monochromatic
#4B4411 #7D721C #AF9F27 #D4C33F #DFD271
Accessibility & contrast
On white
2.69
#AF9F27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.81
#AF9F27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9F27
7.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9F27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9F27 | 1.00 | 2.69 | 7.81 | 7.81 |
| #FFFFFF | 2.69 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9A0A
Deuteranopia (green-blind)
#B3A130
Tritanopia (blue-blind)
#BD9388
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #af9f27; /* rgb */ color: rgb(175, 159, 39); /* oklch */ color: oklch(69.6% 0.133 101.3);
Tailwind
colors: {
custom: {
50: '#cbbb6b',
500: '#af9f27',
950: '#000000',
},
}SCSS
$custom: #af9f27; $custom-light: #cbbb6b; $custom-dark: #000000;
JSON
{
"hex": "#af9f27",
"rgb": {
"r": 175,
"g": 159,
"b": 39
},
"hsl": {
"h": 52.941,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.69595,
"c": 0.13342,
"h": 101.3
},
"luminance": 0.34057
}Semantic roles & 50–950 ramp
primary
#AF9F27
secondary
#6B76C6
accent
#55E741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A