#AFC540#AFC540
#AFC540 is a light, vivid yellow. Relative luminance 0.494; OKLCH L 78.2% C 0.157 H 118.3°. Best body text is #000000 at 10.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC540 |
|---|---|
| RGB | rgb(175, 197, 64) |
| HSL | hsl(70, 53%, 51%) |
| HSV | hsv(70, 68%, 77%) |
| CMYK | cmyk(11.2%, 0%, 67.5%, 22.7%) |
| CIE-LAB | lab(75.71, -25.12, 61.29) |
| CIE-LCH | lch(75.71, 66.24, 112.29°) |
| OKLab | oklab(78.2% -0.0743 0.138) |
| OKLCH | oklch(78.2% 0.157 118.3) |
| XYZ | xyz(38.5716, 49.4170, 12.3560) |
| Luminance | 0.4942 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.75
Gross Green
#A0BF16
ΔE00 3.34
Sick Green
#9DB92C
ΔE00 3.75
Snot Green
#9DC100
ΔE00 3.96
Bright Olive
#9CBB04
ΔE00 4.27
Snot
#ACBB0D
ΔE00 4.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC540 #5640C5
analogous
#C59840 #AFC540 #6CC540
triadic
#AFC540 #40AFC5 #C540AF
tetradic
#AFC540 #40C598 #5640C5 #C5406C
square
#AFC540 #40C598 #5640C5 #C5406C
split-complementary
#AFC540 #406CC5 #9840C5
monochromatic
#5E6A20 #88992F #AFC540 #C3D36F #D6E29E
Accessibility & contrast
On white
1.93
#AFC540 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.88
#AFC540 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC540
10.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC540 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC540 | 1.00 | 1.93 | 10.88 | 10.88 |
| #FFFFFF | 1.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#D2BA2C
Deuteranopia (green-blind)
#CFBB4A
Tritanopia (blue-blind)
#B9BAAA
Achromatopsia (no color)
#BBBBBB
Design tokens & code
CSS
--color: #afc540; /* rgb */ color: rgb(175, 197, 64); /* oklch */ color: oklch(78.2% 0.157 118.3);
Tailwind
colors: {
custom: {
50: '#cad67c',
500: '#afc540',
950: '#000000',
},
}SCSS
$custom: #afc540; $custom-light: #cad67c; $custom-dark: #000000;
JSON
{
"hex": "#afc540",
"rgb": {
"r": 175,
"g": 197,
"b": 64
},
"hsl": {
"h": 69.925,
"s": 53.414,
"l": 51.176
},
"oklch": {
"l": 0.78199,
"c": 0.15671,
"h": 118.3
},
"luminance": 0.49417
}Semantic roles & 50–950 ramp
primary
#AFC540
secondary
#9D93CE
accent
#4BDD63
background
#FCFDF7
surface
#F9FAEE
border
#D2D3C9
text
#14140A
muted
#82837C