#AFAC31#AFAC31

#AFAC31 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#AFAC31
RGBrgb(175, 172, 49)
HSLhsl(59, 56%, 44%)
HSVhsv(59, 72%, 69%)
CMYKcmyk(0%, 1.7%, 72%, 31.4%)
CIE-LABlab(68.64, -13.44, 59.90)
CIE-LCHlch(68.64, 61.39, 102.64°)
OKLaboklab(72.5% -0.0431 0.1326)
OKLCHoklch(72.5% 0.139 108)
XYZxyz(32.9873, 38.8418, 8.6647)
Luminance0.3884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAC31 #3134AF
analogous
#AF6D31 #AFAC31 #73AF31
triadic
#AFAC31 #31AFAC #AC31AF
tetradic
#AFAC31 #31AF6D #3134AF #AF3173
square
#AFAC31 #31AF6D #3134AF #AF3173
split-complementary
#AFAC31 #3173AF #6D31AF
monochromatic
#4F4E16 #7F7D24 #AFAC31 #CECB4F #DBD97F

Accessibility & contrast

On white

2.40
#AFAC31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAC31#FFFFFF#000000##000000
##AFAC311.002.408.778.77
#FFFFFF2.401.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afac31;
/* rgb */ color: rgb(175, 172, 49);
/* oklch */ color: oklch(72.5% 0.139 108.0);
Tailwind
colors: {
  custom: {
    50: '#cac472',
    500: '#afac31',
    950: '#000000',
  },
}
SCSS
$custom: #afac31;
$custom-light: #cac472;
$custom-dark: #000000;
JSON
{
  "hex": "#afac31",
  "rgb": {
    "r": 175,
    "g": 172,
    "b": 49
  },
  "hsl": {
    "h": 58.571,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.72501,
    "c": 0.1394,
    "h": 108
  },
  "luminance": 0.38841
}

Semantic roles & 50–950 ramp

primary
#AFAC31
secondary
#7879C4
accent
#4CE048
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAC31

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

Preview Lab → · Contrast checker → · Palette generator →

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