#AFA332#AFA332

#AFA332 is a light, vivid yellow. Relative luminance 0.355; OKLCH L 70.5% C 0.130 H 103.2°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA332
RGBrgb(175, 163, 50)
HSLhsl(54, 56%, 44%)
HSVhsv(54, 71%, 69%)
CMYKcmyk(0%, 6.9%, 71.4%, 31.4%)
CIE-LABlab(66.17, -8.69, 57.12)
CIE-LCHlch(66.17, 57.78, 98.65°)
OKLaboklab(70.54% -0.0296 0.1269)
OKLCHoklch(70.54% 0.13 103.2)
XYZxyz(31.3535, 35.5399, 8.2254)
Luminance0.3554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA332 #323EAF
analogous
#AF6532 #AFA332 #7DAF32
triadic
#AFA332 #32AFA3 #A332AF
tetradic
#AFA332 #32AF65 #323EAF #AF327D
square
#AFA332 #32AF65 #323EAF #AF327D
split-complementary
#AFA332 #327DAF #6532AF
monochromatic
#504A17 #7F7724 #AFA332 #CDC151 #DBD281

Accessibility & contrast

On white

2.59
#AFA332 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#AFA332 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA332
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA332#FFFFFF#000000##000000
##AFA3321.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E20
Deuteranopia (green-blind)
#B6A339
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa332;
/* rgb */ color: rgb(175, 163, 50);
/* oklch */ color: oklch(70.5% 0.130 103.2);
Tailwind
colors: {
  custom: {
    50: '#cabd71',
    500: '#afa332',
    950: '#000000',
  },
}
SCSS
$custom: #afa332;
$custom-light: #cabd71;
$custom-dark: #000000;
JSON
{
  "hex": "#afa332",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 50
  },
  "hsl": {
    "h": 54.24,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.70536,
    "c": 0.1303,
    "h": 103.2
  },
  "luminance": 0.35539
}

Semantic roles & 50–950 ramp

primary
#AFA332
secondary
#7980C4
accent
#57DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA332

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

Preview Lab → · Contrast checker → · Palette generator →

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