#AF9828#AF9828
#AF9828 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.128 H 96.9°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #AF9828 |
|---|---|
| RGB | rgb(175, 152, 40) |
| HSL | hsl(50, 63%, 42%) |
| HSV | hsv(50, 77%, 69%) |
| CMYK | cmyk(0%, 13.1%, 77.1%, 31.4%) |
| CIE-LAB | lab(63.12, -3.28, 57.89) |
| CIE-LCH | lch(63.12, 57.98, 93.24°) |
| OKLab | oklab(68.1% -0.0154 0.1266) |
| OKLCH | oklch(68.1% 0.128 96.9) |
| XYZ | xyz(29.2920, 31.7252, 6.5878) |
| Luminance | 0.3172 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brown Yellow
#B29705
ΔE00 2.33
Baby Poo
#AB9004
ΔE00 3.06
Baby Shit Brown
#AD900D
ΔE00 3.08
Dark Gold
#B59410
ΔE00 3.24
Yellow Brown
#B79400
ΔE00 3.94
Ocher
#BF9B0C
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF9828 #283FAF
analogous
#AF5528 #AF9828 #83AF28
triadic
#AF9828 #28AF98 #9828AF
tetradic
#AF9828 #28AF55 #283FAF #AF2883
square
#AF9828 #28AF55 #283FAF #AF2883
split-complementary
#AF9828 #2883AF #5528AF
monochromatic
#4B4111 #7D6D1D #AF9828 #D4BA41 #DFCC73
Accessibility & contrast
On white
2.86
#AF9828 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.34
#AF9828 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AF9828
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF9828 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF9828 | 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)
#A89411
Deuteranopia (green-blind)
#AE9C2F
Tritanopia (blue-blind)
#BD8C83
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #af9828; /* rgb */ color: rgb(175, 152, 40); /* oklch */ color: oklch(68.1% 0.128 96.9);
Tailwind
colors: {
custom: {
50: '#cbb56b',
500: '#af9828',
950: '#000000',
},
}SCSS
$custom: #af9828; $custom-light: #cbb56b; $custom-dark: #000000;
JSON
{
"hex": "#af9828",
"rgb": {
"r": 175,
"g": 152,
"b": 40
},
"hsl": {
"h": 49.778,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.68095,
"c": 0.12751,
"h": 96.9
},
"luminance": 0.31724
}Semantic roles & 50–950 ramp
primary
#AF9828
secondary
#6D7CC6
accent
#5EE642
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A