#AFB545#AFB545
#AFB545 is a light, vivid yellow. Relative luminance 0.426; OKLCH L 74.7% C 0.135 H 112.1°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB545 |
|---|---|
| RGB | rgb(175, 181, 69) |
| HSL | hsl(63, 45%, 49%) |
| HSV | hsv(63, 62%, 71%) |
| CMYK | cmyk(3.3%, 0%, 61.9%, 29%) |
| CIE-LAB | lab(71.28, -16.87, 54.61) |
| CIE-LCH | lch(71.28, 57.16, 107.16°) |
| OKLab | oklab(74.66% -0.0507 0.1246) |
| OKLCH | oklch(74.66% 0.135 112.1) |
| XYZ | xyz(35.2782, 42.5921, 11.9918) |
| Luminance | 0.4259 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 4.48
Booger
#9BB53C
ΔE00 4.64
Snot
#ACBB0D
ΔE00 4.76
Sick Green
#9DB92C
ΔE00 4.99
Puke Green
#9AAE07
ΔE00 5.26
Pea
#A4BF20
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB545 #4B45B5
analogous
#B58345 #AFB545 #77B545
triadic
#AFB545 #45AFB5 #B545AF
tetradic
#AFB545 #45B583 #4B45B5 #B54577
square
#AFB545 #45B583 #4B45B5 #B54577
split-complementary
#AFB545 #4577B5 #8345B5
monochromatic
#595C23 #848934 #AFB545 #C3C86F #D6D99B
Accessibility & contrast
On white
2.21
#AFB545 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.52
#AFB545 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB545
9.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB545 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB545 | 1.00 | 2.21 | 9.52 | 9.52 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AD37
Deuteranopia (green-blind)
#C2B04C
Tritanopia (blue-blind)
#BAAB9E
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb545; /* rgb */ color: rgb(175, 181, 69); /* oklch */ color: oklch(74.7% 0.135 112.1);
Tailwind
colors: {
custom: {
50: '#cacb7e',
500: '#afb545',
950: '#000000',
},
}SCSS
$custom: #afb545; $custom-light: #cacb7e; $custom-dark: #000000;
JSON
{
"hex": "#afb545",
"rgb": {
"r": 175,
"g": 181,
"b": 69
},
"hsl": {
"h": 63.214,
"s": 44.8,
"l": 49.02
},
"oklch": {
"l": 0.74657,
"c": 0.13455,
"h": 112.1
},
"luminance": 0.42591
}Semantic roles & 50–950 ramp
primary
#AFB545
secondary
#9391C5
accent
#53D55A
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C