#AFB838#AFB838
#AFB838 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.2% C 0.147 H 113.4°. Best body text is #000000 at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB838 |
|---|---|
| RGB | rgb(175, 184, 56) |
| HSL | hsl(64, 53%, 47%) |
| HSV | hsv(64, 70%, 72%) |
| CMYK | cmyk(4.9%, 0%, 69.6%, 27.8%) |
| CIE-LAB | lab(72.01, -19.18, 60.62) |
| CIE-LCH | lch(72.01, 63.58, 107.55°) |
| OKLab | oklab(75.22% -0.0585 0.1353) |
| OKLCH | oklch(75.22% 0.147 113.4) |
| XYZ | xyz(35.5345, 43.6812, 10.3000) |
| Luminance | 0.4368 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.96
Mustard Green
#A8B504
ΔE00 2.97
Pea
#A4BF20
ΔE00 4.05
Sick Green
#9DB92C
ΔE00 4.10
Bile
#B5C306
ΔE00 4.41
Puke Green
#9AAE07
ΔE00 4.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB838 #4138B8
analogous
#B88138 #AFB838 #6FB838
triadic
#AFB838 #38AFB8 #B838AF
tetradic
#AFB838 #38B881 #4138B8 #B8386F
square
#AFB838 #38B881 #4138B8 #B8386F
split-complementary
#AFB838 #386FB8 #8138B8
monochromatic
#565A1B #82892A #AFB838 #C6CE5F #D7DD8E
Accessibility & contrast
On white
2.16
#AFB838 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.74
#AFB838 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB838
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB838 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB838 | 1.00 | 2.16 | 9.74 | 9.74 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF23
Deuteranopia (green-blind)
#C5B242
Tritanopia (blue-blind)
#BBAD9F
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb838; /* rgb */ color: rgb(175, 184, 56); /* oklch */ color: oklch(75.2% 0.147 113.4);
Tailwind
colors: {
custom: {
50: '#cacd77',
500: '#afb838',
950: '#000000',
},
}SCSS
$custom: #afb838; $custom-light: #cacd77; $custom-dark: #000000;
JSON
{
"hex": "#afb838",
"rgb": {
"r": 175,
"g": 184,
"b": 56
},
"hsl": {
"h": 64.219,
"s": 53.333,
"l": 47.059
},
"oklch": {
"l": 0.75216,
"c": 0.1474,
"h": 113.4
},
"luminance": 0.4368
}Semantic roles & 50–950 ramp
primary
#AFB838
secondary
#8985C7
accent
#4BDD55
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B