#AFC638#AFC638
#AFC638 is a light, vivid yellow. Relative luminance 0.498; OKLCH L 78.4% C 0.163 H 118.4°. Best body text is #000000 at 10.96:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC638 |
|---|---|
| RGB | rgb(175, 198, 56) |
| HSL | hsl(70, 56%, 50%) |
| HSV | hsv(70, 72%, 78%) |
| CMYK | cmyk(11.6%, 0%, 71.7%, 22.4%) |
| CIE-LAB | lab(75.94, -26.06, 64.48) |
| CIE-LCH | lch(75.94, 69.54, 112.00°) |
| OKLab | oklab(78.37% -0.0776 0.1434) |
| OKLCH | oklch(78.37% 0.163 118.4) |
| XYZ | xyz(38.5879, 49.7880, 11.3178) |
| Luminance | 0.4979 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.41
Gross Green
#A0BF16
ΔE00 2.97
Snot Green
#9DC100
ΔE00 3.48
Green Yellow
#B5CE08
ΔE00 3.61
Bile
#B5C306
ΔE00 3.74
Baby Puke Green
#B6C406
ΔE00 3.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC638 #4F38C6
analogous
#C69638 #AFC638 #68C638
triadic
#AFC638 #38AFC6 #C638AF
tetradic
#AFC638 #38C696 #4F38C6 #C63868
square
#AFC638 #38C696 #4F38C6 #C63868
split-complementary
#AFC638 #3868C6 #9638C6
monochromatic
#5B671D #85962B #AFC638 #C2D467 #D5E297
Accessibility & contrast
On white
1.92
#AFC638 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.96
#AFC638 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC638
10.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC638 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC638 | 1.00 | 1.92 | 10.96 | 10.96 |
| #FFFFFF | 1.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D3BB1E
Deuteranopia (green-blind)
#D1BC44
Tritanopia (blue-blind)
#B9BBAA
Achromatopsia (no color)
#BBBBBB
Design tokens & code
CSS
--color: #afc638; /* rgb */ color: rgb(175, 198, 56); /* oklch */ color: oklch(78.4% 0.163 118.4);
Tailwind
colors: {
custom: {
50: '#cad778',
500: '#afc638',
950: '#000000',
},
}SCSS
$custom: #afc638; $custom-light: #cad778; $custom-dark: #000000;
JSON
{
"hex": "#afc638",
"rgb": {
"r": 175,
"g": 198,
"b": 56
},
"hsl": {
"h": 69.718,
"s": 55.906,
"l": 49.804
},
"oklch": {
"l": 0.78366,
"c": 0.16307,
"h": 118.4
},
"luminance": 0.49788
}Semantic roles & 50–950 ramp
primary
#AFC638
secondary
#978DCD
accent
#49DF61
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C