#AFAC32#AFAC32

#AFAC32 is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.139 H 108.0°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AFAC32
RGBrgb(175, 172, 50)
HSLhsl(59, 56%, 44%)
HSVhsv(59, 71%, 69%)
CMYKcmyk(0%, 1.7%, 71.4%, 31.4%)
CIE-LABlab(68.64, -13.39, 59.54)
CIE-LCHlch(68.64, 61.03, 102.67°)
OKLaboklab(72.51% -0.0429 0.132)
OKLCHoklch(72.51% 0.139 108)
XYZxyz(33.0087, 38.8504, 8.7771)
Luminance0.3885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC32 #3235AF
analogous
#AF6E32 #AFAC32 #74AF32
triadic
#AFAC32 #32AFAC #AC32AF
tetradic
#AFAC32 #32AF6E #3235AF #AF3274
square
#AFAC32 #32AF6E #3235AF #AF3274
split-complementary
#AFAC32 #3274AF #6E32AF
monochromatic
#504E17 #7F7D24 #AFAC32 #CDCA51 #DBD981

Accessibility & contrast

On white

2.39
#AFAC32 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AFAC32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAC32
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAC32#FFFFFF#000000##000000
##AFAC321.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BAA51D
Deuteranopia (green-blind)
#BCA93B
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afac32;
/* rgb */ color: rgb(175, 172, 50);
/* oklch */ color: oklch(72.5% 0.139 108.0);
Tailwind
colors: {
  custom: {
    50: '#cac472',
    500: '#afac32',
    950: '#000000',
  },
}
SCSS
$custom: #afac32;
$custom-light: #cac472;
$custom-dark: #000000;
JSON
{
  "hex": "#afac32",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 50
  },
  "hsl": {
    "h": 58.56,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72508,
    "c": 0.13878,
    "h": 108
  },
  "luminance": 0.38849
}

Semantic roles & 50–950 ramp

primary
#AFAC32
secondary
#797BC4
accent
#4DDF49
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC32

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

Preview Lab → · Contrast checker → · Palette generator →

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