#AFB730#AFB730
#AFB730 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 74.9% C 0.151 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB730 |
|---|---|
| RGB | rgb(175, 183, 48) |
| HSL | hsl(64, 58%, 45%) |
| HSV | hsv(64, 74%, 72%) |
| CMYK | cmyk(4.4%, 0%, 73.8%, 28.2%) |
| CIE-LAB | lab(71.69, -19.08, 63.16) |
| CIE-LCH | lch(71.69, 65.98, 106.81°) |
| OKLab | oklab(74.94% -0.059 0.1393) |
| OKLCH | oklch(74.94% 0.151 112.9) |
| XYZ | xyz(35.1473, 43.1951, 9.2817) |
| Luminance | 0.4319 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.33
Snot
#ACBB0D
ΔE00 2.51
Bile
#B5C306
ΔE00 4.10
Pea
#A4BF20
ΔE00 4.17
Puke Green
#9AAE07
ΔE00 4.22
Baby Puke Green
#B6C406
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB730 #3830B7
analogous
#B77C30 #AFB730 #6BB730
triadic
#AFB730 #30AFB7 #B730AF
tetradic
#AFB730 #30B77C #3830B7 #B7306B
square
#AFB730 #30B77C #3830B7 #B7306B
split-complementary
#AFB730 #306BB7 #7C30B7
monochromatic
#525617 #818723 #AFB730 #CAD252 #D9DE83
Accessibility & contrast
On white
2.18
#AFB730 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.64
#AFB730 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB730
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB730 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB730 | 1.00 | 2.18 | 9.64 | 9.64 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE13
Deuteranopia (green-blind)
#C5B13B
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb730; /* rgb */ color: rgb(175, 183, 48); /* oklch */ color: oklch(74.9% 0.151 112.9);
Tailwind
colors: {
custom: {
50: '#cacc72',
500: '#afb730',
950: '#000000',
},
}SCSS
$custom: #afb730; $custom-light: #cacc72; $custom-dark: #000000;
JSON
{
"hex": "#afb730",
"rgb": {
"r": 175,
"g": 183,
"b": 48
},
"hsl": {
"h": 63.556,
"s": 58.442,
"l": 45.294
},
"oklch": {
"l": 0.74938,
"c": 0.15125,
"h": 112.9
},
"luminance": 0.43194
}Semantic roles & 50–950 ramp
primary
#AFB730
secondary
#807BC8
accent
#46E24F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B