#AFC238#AFC238
#AFC238 is a light, vivid yellow. Relative luminance 0.480; OKLCH L 77.5% C 0.159 H 117.1°. Best body text is #000000 at 10.60:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC238 |
|---|---|
| RGB | rgb(175, 194, 56) |
| HSL | hsl(68, 55%, 49%) |
| HSV | hsv(68, 71%, 76%) |
| CMYK | cmyk(9.8%, 0%, 71.1%, 23.9%) |
| CIE-LAB | lab(74.81, -24.12, 63.38) |
| CIE-LCH | lch(74.81, 67.81, 110.83°) |
| OKLab | oklab(77.46% -0.0722 0.1411) |
| OKLCH | oklch(77.46% 0.159 117.1) |
| XYZ | xyz(37.6857, 47.9835, 11.0171) |
| Luminance | 0.4798 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.23
Gross Green
#A0BF16
ΔE00 2.97
Snot
#ACBB0D
ΔE00 3.14
Sick Green
#9DB92C
ΔE00 3.43
Bile
#B5C306
ΔE00 3.45
Baby Puke Green
#B6C406
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC238 #4B38C2
analogous
#C29038 #AFC238 #6AC238
triadic
#AFC238 #38AFC2 #C238AF
tetradic
#AFC238 #38C290 #4B38C2 #C2386A
square
#AFC238 #38C290 #4B38C2 #C2386A
split-complementary
#AFC238 #386AC2 #9038C2
monochromatic
#59631D #84932A #AFC238 #C3D265 #D6E094
Accessibility & contrast
On white
1.98
#AFC238 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.60
#AFC238 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC238
10.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC238 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC238 | 1.00 | 1.98 | 10.60 | 10.60 |
| #FFFFFF | 1.98 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFB81F
Deuteranopia (green-blind)
#CDB943
Tritanopia (blue-blind)
#BAB7A7
Achromatopsia (no color)
#B8B8B8
Design tokens & code
CSS
--color: #afc238; /* rgb */ color: rgb(175, 194, 56); /* oklch */ color: oklch(77.5% 0.159 117.1);
Tailwind
colors: {
custom: {
50: '#cad478',
500: '#afc238',
950: '#000000',
},
}SCSS
$custom: #afc238; $custom-light: #cad478; $custom-dark: #000000;
JSON
{
"hex": "#afc238",
"rgb": {
"r": 175,
"g": 194,
"b": 56
},
"hsl": {
"h": 68.261,
"s": 55.2,
"l": 49.02
},
"oklch": {
"l": 0.77462,
"c": 0.15853,
"h": 117.1
},
"luminance": 0.47983
}Semantic roles & 50–950 ramp
primary
#AFC238
secondary
#938ACB
accent
#49DF5E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B