#AFA442#AFA442

#AFA442 is a light, moderate yellow. Relative luminance 0.361; OKLCH L 70.9% C 0.119 H 102.9°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#AFA442
RGBrgb(175, 164, 66)
HSLhsl(54, 45%, 47%)
HSVhsv(54, 62%, 69%)
CMYKcmyk(0%, 6.3%, 62.3%, 31.4%)
CIE-LABlab(66.57, -8.27, 50.84)
CIE-LCHlch(66.57, 51.51, 99.24°)
OKLaboklab(70.89% -0.0267 0.1162)
OKLCHoklch(70.89% 0.119 102.9)
XYZxyz(31.9392, 36.0594, 10.4310)
Luminance0.3606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA442 #424DAF
analogous
#AF6E42 #AFA442 #84AF42
triadic
#AFA442 #42AFA4 #A442AF
tetradic
#AFA442 #42AF6E #424DAF #AF4284
square
#AFA442 #42AF6E #424DAF #AF4284
split-complementary
#AFA442 #4284AF #6E42AF
monochromatic
#565120 #837A31 #AFA442 #C6BD68 #D7D095

Accessibility & contrast

On white

2.56
#AFA442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#AFA442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA442
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA442#FFFFFF#000000##000000
##AFA4421.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F37
Deuteranopia (green-blind)
#B5A447
Tritanopia (blue-blind)
#BC998F
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #afa442;
/* rgb */ color: rgb(175, 164, 66);
/* oklch */ color: oklch(70.9% 0.119 102.9);
Tailwind
colors: {
  custom: {
    50: '#cabe7b',
    500: '#afa442',
    950: '#000000',
  },
}
SCSS
$custom: #afa442;
$custom-light: #cabe7b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa442",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 66
  },
  "hsl": {
    "h": 53.945,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.70893,
    "c": 0.11924,
    "h": 102.9
  },
  "luminance": 0.36058
}

Semantic roles & 50–950 ramp

primary
#AFA442
secondary
#8A90C2
accent
#60D553
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B

Preview Lab

Preview with #AFA442

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AFA442 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva