#AFC126#AFC126
#AFC126 is a light, vivid yellow. Relative luminance 0.474; OKLCH L 77.1% C 0.167 H 116.5°. Best body text is #000000 at 10.48:1 contrast (WCAG AA passes).
Color values
| HEX | #AFC126 |
|---|---|
| RGB | rgb(175, 193, 38) |
| HSL | hsl(67, 67%, 45%) |
| HSV | hsv(67, 80%, 76%) |
| CMYK | cmyk(9.3%, 0%, 80.3%, 24.3%) |
| CIE-LAB | lab(74.44, -24.42, 68.73) |
| CIE-LCH | lch(74.44, 72.94, 109.56°) |
| OKLab | oklab(77.13% -0.0745 0.1494) |
| OKLCH | oklch(77.13% 0.167 116.5) |
| XYZ | xyz(37.1000, 47.3944, 9.0270) |
| Luminance | 0.4739 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 1.91
Pea
#A4BF20
ΔE00 2.08
Bile
#B5C306
ΔE00 2.11
Baby Puke Green
#B6C406
ΔE00 2.26
Gross Green
#A0BF16
ΔE00 2.78
Bright Olive
#9CBB04
ΔE00 3.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFC126 #3826C1
analogous
#C18626 #AFC126 #61C126
triadic
#AFC126 #26AFC1 #C126AF
tetradic
#AFC126 #26C186 #3826C1 #C12661
square
#AFC126 #26C186 #3826C1 #C12661
split-complementary
#AFC126 #2661C1 #8626C1
monochromatic
#525B12 #818E1C #AFC126 #CADB49 #D9E57C
Accessibility & contrast
On white
2.00
#AFC126 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.48
#AFC126 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFC126
10.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFC126 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFC126 | 1.00 | 2.00 | 10.48 | 10.48 |
| #FFFFFF | 2.00 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CDB836
Tritanopia (blue-blind)
#BAB6A5
Achromatopsia (no color)
#B7B7B7
Design tokens & code
CSS
--color: #afc126; /* rgb */ color: rgb(175, 193, 38); /* oklch */ color: oklch(77.1% 0.167 116.5);
Tailwind
colors: {
custom: {
50: '#cbd36f',
500: '#afc126',
950: '#000000',
},
}SCSS
$custom: #afc126; $custom-light: #cbd36f; $custom-dark: #000000;
JSON
{
"hex": "#afc126",
"rgb": {
"r": 175,
"g": 193,
"b": 38
},
"hsl": {
"h": 66.968,
"s": 67.1,
"l": 45.294
},
"oklch": {
"l": 0.77133,
"c": 0.16692,
"h": 116.5
},
"luminance": 0.47394
}Semantic roles & 50–950 ramp
primary
#AFC126
secondary
#8075CD
accent
#3EEA52
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141408
muted
#82827B