#AFB727#AFB727
#AFB727 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.63:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB727 |
|---|---|
| RGB | rgb(175, 183, 39) |
| HSL | hsl(63, 65%, 44%) |
| HSV | hsv(63, 79%, 72%) |
| CMYK | cmyk(4.4%, 0%, 78.7%, 28.2%) |
| CIE-LAB | lab(71.64, -19.45, 65.96) |
| CIE-LCH | lch(71.64, 68.77, 106.43°) |
| OKLab | oklab(74.89% -0.0607 0.1436) |
| OKLCH | oklch(74.89% 0.156 112.9) |
| XYZ | xyz(34.9801, 43.1282, 8.4010) |
| Luminance | 0.4313 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.79
Snot
#ACBB0D
ΔE00 2.02
Bile
#B5C306
ΔE00 3.68
Baby Puke Green
#B6C406
ΔE00 3.91
Puke Green
#9AAE07
ΔE00 4.12
Pea
#A4BF20
ΔE00 4.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB727 #2F27B7
analogous
#B77727 #AFB727 #67B727
triadic
#AFB727 #27AFB7 #B727AF
tetradic
#AFB727 #27B777 #2F27B7 #B72767
square
#AFB727 #27B777 #2F27B7 #B72767
split-complementary
#AFB727 #2767B7 #7727B7
monochromatic
#4F5211 #7F851C #AFB727 #CFD744 #DCE276
Accessibility & contrast
On white
2.18
#AFB727 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#AFB727 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB727
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB727 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB727 | 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)
#C5B134
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb727; /* rgb */ color: rgb(175, 183, 39); /* oklch */ color: oklch(74.9% 0.156 112.9);
Tailwind
colors: {
custom: {
50: '#cbcc6e',
500: '#afb727',
950: '#000000',
},
}SCSS
$custom: #afb727; $custom-light: #cbcc6e; $custom-dark: #000000;
JSON
{
"hex": "#afb727",
"rgb": {
"r": 175,
"g": 183,
"b": 39
},
"hsl": {
"h": 63.333,
"s": 64.865,
"l": 43.529
},
"oklch": {
"l": 0.74887,
"c": 0.15595,
"h": 112.9
},
"luminance": 0.43127
}Semantic roles & 50–950 ramp
primary
#AFB727
secondary
#7570C9
accent
#40E849
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B