#AFAB32#AFAB32

#AFAB32 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.138 H 107.5°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFAB32
RGBrgb(175, 171, 50)
HSLhsl(58, 56%, 44%)
HSVhsv(58, 71%, 69%)
CMYKcmyk(0%, 2.3%, 71.4%, 31.4%)
CIE-LABlab(68.37, -12.87, 59.27)
CIE-LCHlch(68.37, 60.65, 102.25°)
OKLaboklab(72.29% -0.0414 0.1314)
OKLCHoklch(72.29% 0.138 107.5)
XYZxyz(32.8191, 38.4712, 8.7139)
Luminance0.3847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB32 #3236AF
analogous
#AF6D32 #AFAB32 #75AF32
triadic
#AFAB32 #32AFAB #AB32AF
tetradic
#AFAB32 #32AF6D #3236AF #AF3275
square
#AFAB32 #32AF6D #3236AF #AF3275
split-complementary
#AFAB32 #3275AF #6D32AF
monochromatic
#504E17 #7F7C24 #AFAB32 #CDC951 #DBD881

Accessibility & contrast

On white

2.42
#AFAB32 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFAB32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAB32
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAB32#FFFFFF#000000##000000
##AFAB321.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afab32;
/* rgb */ color: rgb(175, 171, 50);
/* oklch */ color: oklch(72.3% 0.138 107.5);
Tailwind
colors: {
  custom: {
    50: '#cac372',
    500: '#afab32',
    950: '#000000',
  },
}
SCSS
$custom: #afab32;
$custom-light: #cac372;
$custom-dark: #000000;
JSON
{
  "hex": "#afab32",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 50
  },
  "hsl": {
    "h": 58.08,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72288,
    "c": 0.1378,
    "h": 107.5
  },
  "luminance": 0.3847
}

Semantic roles & 50–950 ramp

primary
#AFAB32
secondary
#797BC4
accent
#4EDF49
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAB32

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

Preview Lab → · Contrast checker → · Palette generator →

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