#AFB126#AFB126
#AFB126 is a light, vivid yellow. Relative luminance 0.407; OKLCH L 73.5% C 0.150 H 110.5°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB126 |
|---|---|
| RGB | rgb(175, 177, 38) |
| HSL | hsl(61, 65%, 42%) |
| HSV | hsv(61, 79%, 69%) |
| CMYK | cmyk(1.1%, 0%, 78.5%, 30.6%) |
| CIE-LAB | lab(69.96, -16.46, 64.76) |
| CIE-LCH | lch(69.96, 66.82, 104.27°) |
| OKLab | oklab(73.54% -0.0525 0.1409) |
| OKLCH | oklch(73.54% 0.15 110.5) |
| XYZ | xyz(33.7524, 40.6992, 7.9111) |
| Luminance | 0.4070 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.80
Puke
#A5A502
ΔE00 3.59
Snot
#ACBB0D
ΔE00 3.76
Vomit
#A2A415
ΔE00 3.81
Puke Green
#9AAE07
ΔE00 4.44
Olive Yellow
#C2B709
ΔE00 4.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB126 #2826B1
analogous
#B16D26 #AFB126 #6AB126
triadic
#AFB126 #26AFB1 #B126AF
tetradic
#AFB126 #26B16D #2826B1 #B1266A
square
#AFB126 #26B16D #2826B1 #B1266A
split-complementary
#AFB126 #266AB1 #6D26B1
monochromatic
#4B4C10 #7D7F1B #AFB126 #D4D63F #DFE071
Accessibility & contrast
On white
2.30
#AFB126 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.14
#AFB126 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB126
9.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB126 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB126 | 1.00 | 2.30 | 9.14 | 9.14 |
| #FFFFFF | 2.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#C1AD33
Tritanopia (blue-blind)
#BCA598
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #afb126; /* rgb */ color: rgb(175, 177, 38); /* oklch */ color: oklch(73.5% 0.150 110.5);
Tailwind
colors: {
custom: {
50: '#cbc86d',
500: '#afb126',
950: '#000000',
},
}SCSS
$custom: #afb126; $custom-light: #cbc86d; $custom-dark: #000000;
JSON
{
"hex": "#afb126",
"rgb": {
"r": 175,
"g": 177,
"b": 38
},
"hsl": {
"h": 60.863,
"s": 64.651,
"l": 42.157
},
"oklch": {
"l": 0.73543,
"c": 0.15036,
"h": 110.5
},
"luminance": 0.40698
}Semantic roles & 50–950 ramp
primary
#AFB126
secondary
#6D6BC7
accent
#40E843
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141308
muted
#82827A