#AFB628#AFB628
#AFB628 is a light, vivid yellow. Relative luminance 0.427; OKLCH L 74.7% C 0.154 H 112.5°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB628 |
|---|---|
| RGB | rgb(175, 182, 40) |
| HSL | hsl(63, 64%, 44%) |
| HSV | hsv(63, 78%, 71%) |
| CMYK | cmyk(3.8%, 0%, 78%, 28.6%) |
| CIE-LAB | lab(71.37, -18.91, 65.42) |
| CIE-LCH | lch(71.37, 68.10, 106.13°) |
| OKLab | oklab(74.67% -0.0592 0.1427) |
| OKLCH | oklch(74.67% 0.154 112.5) |
| XYZ | xyz(34.7913, 42.7239, 8.4209) |
| Luminance | 0.4272 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.90
Snot
#ACBB0D
ΔE00 2.33
Bile
#B5C306
ΔE00 3.98
Puke Green
#9AAE07
ΔE00 4.11
Baby Puke Green
#B6C406
ΔE00 4.21
Pea
#A4BF20
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB628 #2F28B6
analogous
#B67628 #AFB628 #68B628
triadic
#AFB628 #28AFB6 #B628AF
tetradic
#AFB628 #28B676 #2F28B6 #B62868
square
#AFB628 #28B676 #2F28B6 #B62868
split-complementary
#AFB628 #2868B6 #7628B6
monochromatic
#4F5212 #7F841D #AFB628 #CFD645 #DCE177
Accessibility & contrast
On white
2.20
#AFB628 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.54
#AFB628 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB628
9.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB628 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB628 | 1.00 | 2.20 | 9.54 | 9.54 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#C5B035
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb628; /* rgb */ color: rgb(175, 182, 40); /* oklch */ color: oklch(74.7% 0.154 112.5);
Tailwind
colors: {
custom: {
50: '#cbcb6f',
500: '#afb628',
950: '#000000',
},
}SCSS
$custom: #afb628; $custom-light: #cbcb6f; $custom-dark: #000000;
JSON
{
"hex": "#afb628",
"rgb": {
"r": 175,
"g": 182,
"b": 40
},
"hsl": {
"h": 62.958,
"s": 63.964,
"l": 43.529
},
"oklch": {
"l": 0.74669,
"c": 0.15443,
"h": 112.5
},
"luminance": 0.42723
}Semantic roles & 50–950 ramp
primary
#AFB628
secondary
#7571C9
accent
#41E749
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B