#AFAD32#AFAD32

#AFAD32 is a light, vivid yellow. Relative luminance 0.392; OKLCH L 72.7% C 0.140 H 108.5°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#AFAD32
RGBrgb(175, 173, 50)
HSLhsl(59, 56%, 44%)
HSVhsv(59, 71%, 69%)
CMYKcmyk(0%, 1.1%, 71.4%, 31.4%)
CIE-LABlab(68.92, -13.90, 59.81)
CIE-LCHlch(68.92, 61.40, 103.09°)
OKLaboklab(72.73% -0.0443 0.1326)
OKLCHoklch(72.73% 0.14 108.5)
XYZxyz(33.1997, 39.2324, 8.8408)
Luminance0.3923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD32 #3234AF
analogous
#AF6F32 #AFAD32 #73AF32
triadic
#AFAD32 #32AFAD #AD32AF
tetradic
#AFAD32 #32AF6F #3234AF #AF3273
square
#AFAD32 #32AF6F #3234AF #AF3273
split-complementary
#AFAD32 #3273AF #6F32AF
monochromatic
#504F17 #7F7E24 #AFAD32 #CDCB51 #DBD981

Accessibility & contrast

On white

2.37
#AFAD32 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.85
#AFAD32 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD32
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD32#FFFFFF#000000##000000
##AFAD321.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA61C
Deuteranopia (green-blind)
#BDAA3B
Tritanopia (blue-blind)
#BCA295
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afad32;
/* rgb */ color: rgb(175, 173, 50);
/* oklch */ color: oklch(72.7% 0.140 108.5);
Tailwind
colors: {
  custom: {
    50: '#cac572',
    500: '#afad32',
    950: '#000000',
  },
}
SCSS
$custom: #afad32;
$custom-light: #cac572;
$custom-dark: #000000;
JSON
{
  "hex": "#afad32",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 50
  },
  "hsl": {
    "h": 59.04,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.72729,
    "c": 0.13976,
    "h": 108.5
  },
  "luminance": 0.39231
}

Semantic roles & 50–950 ramp

primary
#AFAD32
secondary
#797AC4
accent
#4BDF49
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFAD32

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

Preview Lab → · Contrast checker → · Palette generator →

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