#AFB726#AFB726
#AFB726 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.156 H 112.9°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB726 |
|---|---|
| RGB | rgb(175, 183, 38) |
| HSL | hsl(63, 66%, 43%) |
| HSV | hsv(63, 79%, 72%) |
| CMYK | cmyk(4.4%, 0%, 79.2%, 28.2%) |
| CIE-LAB | lab(71.64, -19.49, 66.25) |
| CIE-LCH | lch(71.64, 69.05, 106.39°) |
| OKLab | oklab(74.88% -0.0609 0.1441) |
| OKLCH | oklch(74.88% 0.156 112.9) |
| XYZ | xyz(34.9637, 43.1217, 8.3149) |
| Luminance | 0.4312 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.74
Snot
#ACBB0D
ΔE00 1.98
Bile
#B5C306
ΔE00 3.64
Baby Puke Green
#B6C406
ΔE00 3.88
Puke Green
#9AAE07
ΔE00 4.12
Pea
#A4BF20
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB726 #2E26B7
analogous
#B77626 #AFB726 #67B726
triadic
#AFB726 #26AFB7 #B726AF
tetradic
#AFB726 #26B776 #2E26B7 #B72667
square
#AFB726 #26B776 #2E26B7 #B72667
split-complementary
#AFB726 #2667B7 #7626B7
monochromatic
#4E5211 #7F841B #AFB726 #D0D842 #DCE275
Accessibility & contrast
On white
2.18
#AFB726 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.62
#AFB726 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB726
9.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB726 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB726 | 1.00 | 2.18 | 9.62 | 9.62 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B134
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb726; /* rgb */ color: rgb(175, 183, 38); /* oklch */ color: oklch(74.9% 0.156 112.9);
Tailwind
colors: {
custom: {
50: '#cbcc6e',
500: '#afb726',
950: '#000000',
},
}SCSS
$custom: #afb726; $custom-light: #cbcc6e; $custom-dark: #000000;
JSON
{
"hex": "#afb726",
"rgb": {
"r": 175,
"g": 183,
"b": 38
},
"hsl": {
"h": 63.31,
"s": 65.611,
"l": 43.333
},
"oklch": {
"l": 0.74882,
"c": 0.15641,
"h": 112.9
},
"luminance": 0.43121
}Semantic roles & 50–950 ramp
primary
#AFB726
secondary
#746FCA
accent
#3FE949
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B