#AFC138#AFC138
#AFC138 is a light, vivid yellow. Relative luminance 0.475; OKLCH L 77.2% C 0.157 H 116.8°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC138 |
|---|---|
| RGB | rgb(175, 193, 56) |
| HSL | hsl(68, 55%, 49%) |
| HSV | hsv(68, 71%, 76%) |
| CMYK | cmyk(9.3%, 0%, 71%, 24.3%) |
| CIE-LAB | lab(74.53, -23.63, 63.11) |
| CIE-LCH | lch(74.53, 67.38, 110.53°) |
| OKLab | oklab(77.24% -0.0709 0.1405) |
| OKLCH | oklch(77.24% 0.157 116.8) |
| XYZ | xyz(37.4639, 47.5399, 10.9431) |
| Luminance | 0.4754 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.28
Snot
#ACBB0D
ΔE00 2.99
Gross Green
#A0BF16
ΔE00 3.05
Sick Green
#9DB92C
ΔE00 3.37
Bile
#B5C306
ΔE00 3.44
Baby Puke Green
#B6C406
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC138 #4A38C1
analogous
#C18F38 #AFC138 #6BC138
triadic
#AFC138 #38AFC1 #C138AF
tetradic
#AFC138 #38C18F #4A38C1 #C1386B
square
#AFC138 #38C18F #4A38C1 #C1386B
split-complementary
#AFC138 #386BC1 #8F38C1
monochromatic
#59621C #84922A #AFC138 #C4D264 #D6E094
Accessibility & contrast
On white
2.00
#AFC138 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.51
#AFC138 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC138
10.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC138 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC138 | 1.00 | 2.00 | 10.51 | 10.51 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.51 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.51 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEB720
Deuteranopia (green-blind)
#CDB843
Tritanopia (blue-blind)
#BAB6A6
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc138; /* rgb */ color: rgb(175, 193, 56); /* oklch */ color: oklch(77.2% 0.157 116.8);
Tailwind
colors: {
custom: {
50: '#cad378',
500: '#afc138',
950: '#000000',
},
}SCSS
$custom: #afc138; $custom-light: #cad378; $custom-dark: #000000;
JSON
{
"hex": "#afc138",
"rgb": {
"r": 175,
"g": 193,
"b": 56
},
"hsl": {
"h": 67.883,
"s": 55.02,
"l": 48.824
},
"oklch": {
"l": 0.77237,
"c": 0.15739,
"h": 116.8
},
"luminance": 0.47539
}Semantic roles & 50–950 ramp
primary
#AFC138
secondary
#928ACB
accent
#49DE5D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B