#AFB827#AFB827
#AFB827 is a light, vivid yellow. Relative luminance 0.435; OKLCH L 75.1% C 0.157 H 113.3°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB827 |
|---|---|
| RGB | rgb(175, 184, 39) |
| HSL | hsl(64, 65%, 44%) |
| HSV | hsv(64, 79%, 72%) |
| CMYK | cmyk(4.9%, 0%, 78.8%, 27.8%) |
| CIE-LAB | lab(71.92, -19.95, 66.21) |
| CIE-LCH | lch(71.92, 69.15, 106.77°) |
| OKLab | oklab(75.11% -0.0621 0.1442) |
| OKLCH | oklch(75.11% 0.157 113.3) |
| XYZ | xyz(35.1870, 43.5422, 8.4700) |
| Luminance | 0.4354 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.78
Snot
#ACBB0D
ΔE00 1.78
Bile
#B5C306
ΔE00 3.43
Baby Puke Green
#B6C406
ΔE00 3.66
Pea
#A4BF20
ΔE00 3.88
Puke Green
#9AAE07
ΔE00 4.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB827 #3027B8
analogous
#B87827 #AFB827 #66B827
triadic
#AFB827 #27AFB8 #B827AF
tetradic
#AFB827 #27B878 #3027B8 #B82766
square
#AFB827 #27B878 #3027B8 #B82766
split-complementary
#AFB827 #2766B8 #7827B8
monochromatic
#4F5312 #7F861C #AFB827 #CED845 #DCE277
Accessibility & contrast
On white
2.16
#AFB827 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.71
#AFB827 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB827
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB827 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB827 | 1.00 | 2.16 | 9.71 | 9.71 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF00
Deuteranopia (green-blind)
#C6B235
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb827; /* rgb */ color: rgb(175, 184, 39); /* oklch */ color: oklch(75.1% 0.157 113.3);
Tailwind
colors: {
custom: {
50: '#cbcd6f',
500: '#afb827',
950: '#000000',
},
}SCSS
$custom: #afb827; $custom-light: #cbcd6f; $custom-dark: #000000;
JSON
{
"hex": "#afb827",
"rgb": {
"r": 175,
"g": 184,
"b": 39
},
"hsl": {
"h": 63.724,
"s": 65.022,
"l": 43.725
},
"oklch": {
"l": 0.75111,
"c": 0.15698,
"h": 113.3
},
"luminance": 0.43541
}Semantic roles & 50–950 ramp
primary
#AFB827
secondary
#7671CA
accent
#40E84A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B