#AFB728#AFB728
#AFB728 is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.155 H 112.9°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB728 |
|---|---|
| RGB | rgb(175, 183, 40) |
| HSL | hsl(63, 64%, 44%) |
| HSV | hsv(63, 78%, 72%) |
| CMYK | cmyk(4.4%, 0%, 78.1%, 28.2%) |
| CIE-LAB | lab(71.65, -19.41, 65.67) |
| CIE-LCH | lch(71.65, 68.48, 106.47°) |
| OKLab | oklab(74.89% -0.0606 0.1432) |
| OKLCH | oklch(74.89% 0.155 112.9) |
| XYZ | xyz(34.9968, 43.1349, 8.4894) |
| Luminance | 0.4313 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.84
Snot
#ACBB0D
ΔE00 2.07
Bile
#B5C306
ΔE00 3.72
Baby Puke Green
#B6C406
ΔE00 3.95
Puke Green
#9AAE07
ΔE00 4.13
Pea
#A4BF20
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB728 #3028B7
analogous
#B77728 #AFB728 #67B728
triadic
#AFB728 #28AFB7 #B728AF
tetradic
#AFB728 #28B777 #3028B7 #B72867
square
#AFB728 #28B777 #3028B7 #B72867
split-complementary
#AFB728 #2867B7 #7728B7
monochromatic
#4F5312 #7F851D #AFB728 #CED646 #DCE178
Accessibility & contrast
On white
2.18
#AFB728 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#AFB728 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB728
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB728 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB728 | 1.00 | 2.18 | 9.63 | 9.63 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B135
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb728; /* rgb */ color: rgb(175, 183, 40); /* oklch */ color: oklch(74.9% 0.155 112.9);
Tailwind
colors: {
custom: {
50: '#cbcc6f',
500: '#afb728',
950: '#000000',
},
}SCSS
$custom: #afb728; $custom-light: #cbcc6f; $custom-dark: #000000;
JSON
{
"hex": "#afb728",
"rgb": {
"r": 175,
"g": 183,
"b": 40
},
"hsl": {
"h": 63.357,
"s": 64.126,
"l": 43.725
},
"oklch": {
"l": 0.74892,
"c": 0.15547,
"h": 112.9
},
"luminance": 0.43134
}Semantic roles & 50–950 ramp
primary
#AFB728
secondary
#7672C9
accent
#41E74A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B