#AFC338#AFC338
#AFC338 is a light, vivid yellow. Relative luminance 0.484; OKLCH L 77.7% C 0.160 H 117.4°. Best body text is #000000 at 10.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC338 |
|---|---|
| RGB | rgb(175, 195, 56) |
| HSL | hsl(69, 55%, 49%) |
| HSV | hsv(69, 71%, 76%) |
| CMYK | cmyk(10.3%, 0%, 71.3%, 23.5%) |
| CIE-LAB | lab(75.10, -24.60, 63.66) |
| CIE-LCH | lch(75.10, 68.25, 111.13°) |
| OKLab | oklab(77.69% -0.0736 0.1417) |
| OKLCH | oklch(77.69% 0.16 117.4) |
| XYZ | xyz(37.9090, 48.4301, 11.0915) |
| Luminance | 0.4843 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.22
Gross Green
#A0BF16
ΔE00 2.93
Snot
#ACBB0D
ΔE00 3.32
Bile
#B5C306
ΔE00 3.49
Sick Green
#9DB92C
ΔE00 3.52
Baby Puke Green
#B6C406
ΔE00 3.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC338 #4C38C3
analogous
#C39238 #AFC338 #6AC338
triadic
#AFC338 #38AFC3 #C338AF
tetradic
#AFC338 #38C392 #4C38C3 #C3386A
square
#AFC338 #38C392 #4C38C3 #C3386A
split-complementary
#AFC338 #386AC3 #9238C3
monochromatic
#5A641D #84932A #AFC338 #C3D365 #D6E195
Accessibility & contrast
On white
1.97
#AFC338 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.69
#AFC338 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC338
10.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC338 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC338 | 1.00 | 1.97 | 10.69 | 10.69 |
| #FFFFFF | 1.97 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D0B81F
Deuteranopia (green-blind)
#CEBA43
Tritanopia (blue-blind)
#BAB8A8
Achromatopsia (no color)
#B9B9B9
Design tokens & code
CSS
--color: #afc338; /* rgb */ color: rgb(175, 195, 56); /* oklch */ color: oklch(77.7% 0.160 117.4);
Tailwind
colors: {
custom: {
50: '#cad578',
500: '#afc338',
950: '#000000',
},
}SCSS
$custom: #afc338; $custom-light: #cad578; $custom-dark: #000000;
JSON
{
"hex": "#afc338",
"rgb": {
"r": 175,
"g": 195,
"b": 56
},
"hsl": {
"h": 68.633,
"s": 55.378,
"l": 49.216
},
"oklch": {
"l": 0.77688,
"c": 0.15966,
"h": 117.4
},
"luminance": 0.4843
}Semantic roles & 50–950 ramp
primary
#AFC338
secondary
#948BCC
accent
#49DF5F
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#141409
muted
#82837B