#AF9827#AF9827
#AF9827 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.128 H 97.0°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9827 |
|---|---|
| RGB | rgb(175, 152, 39) |
| HSL | hsl(50, 64%, 42%) |
| HSV | hsv(50, 78%, 69%) |
| CMYK | cmyk(0%, 13.1%, 77.7%, 31.4%) |
| CIE-LAB | lab(63.11, -3.32, 58.23) |
| CIE-LCH | lch(63.11, 58.33, 93.26°) |
| OKLab | oklab(68.09% -0.0156 0.1271) |
| OKLCH | oklch(68.09% 0.128 97) |
| XYZ | xyz(29.2752, 31.7185, 6.4994) |
| Luminance | 0.3172 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.25
Baby Poo
#AB9004
ΔE00 3.01
Baby Shit Brown
#AD900D
ΔE00 3.04
Dark Gold
#B59410
ΔE00 3.21
Yellow Brown
#B79400
ΔE00 3.90
Ocher
#BF9B0C
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9827 #273EAF
analogous
#AF5427 #AF9827 #82AF27
triadic
#AF9827 #27AF98 #9827AF
tetradic
#AF9827 #27AF54 #273EAF #AF2782
square
#AF9827 #27AF54 #273EAF #AF2782
split-complementary
#AF9827 #2782AF #5427AF
monochromatic
#4B4111 #7D6D1C #AF9827 #D4BB3F #DFCD71
Accessibility & contrast
On white
2.86
#AF9827 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.34
#AF9827 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9827
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9827 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9827 | 1.00 | 2.86 | 7.34 | 7.34 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#A8940E
Deuteranopia (green-blind)
#AE9C2F
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af9827; /* rgb */ color: rgb(175, 152, 39); /* oklch */ color: oklch(68.1% 0.128 97.0);
Tailwind
colors: {
custom: {
50: '#cbb56b',
500: '#af9827',
950: '#000000',
},
}SCSS
$custom: #af9827; $custom-light: #cbb56b; $custom-dark: #000000;
JSON
{
"hex": "#af9827",
"rgb": {
"r": 175,
"g": 152,
"b": 39
},
"hsl": {
"h": 49.853,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.68089,
"c": 0.12806,
"h": 97
},
"luminance": 0.31717
}Semantic roles & 50–950 ramp
primary
#AF9827
secondary
#6B7BC6
accent
#5DE741
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A