#AFAD31#AFAD31

#AFAD31 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.84:1 contrast (WCAG AA passes).

Color values

HEX#AFAD31
RGBrgb(175, 173, 49)
HSLhsl(59, 56%, 44%)
HSVhsv(59, 72%, 69%)
CMYKcmyk(0%, 1.1%, 72%, 31.4%)
CIE-LABlab(68.91, -13.95, 60.17)
CIE-LCHlch(68.91, 61.76, 103.05°)
OKLaboklab(72.72% -0.0446 0.1331)
OKLCHoklch(72.72% 0.14 108.5)
XYZxyz(33.1784, 39.2239, 8.7284)
Luminance0.3922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAD31 #3133AF
analogous
#AF6E31 #AFAD31 #72AF31
triadic
#AFAD31 #31AFAD #AD31AF
tetradic
#AFAD31 #31AF6E #3133AF #AF3172
square
#AFAD31 #31AF6E #3133AF #AF3172
split-complementary
#AFAD31 #3172AF #6E31AF
monochromatic
#4F4E16 #7F7E24 #AFAD31 #CECC4F #DBDA7F

Accessibility & contrast

On white

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

On black

8.84
#AFAD31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAD31
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAD31#FFFFFF#000000##000000
##AFAD311.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afad31;
/* rgb */ color: rgb(175, 173, 49);
/* oklch */ color: oklch(72.7% 0.140 108.5);
Tailwind
colors: {
  custom: {
    50: '#cac572',
    500: '#afad31',
    950: '#000000',
  },
}
SCSS
$custom: #afad31;
$custom-light: #cac572;
$custom-dark: #000000;
JSON
{
  "hex": "#afad31",
  "rgb": {
    "r": 175,
    "g": 173,
    "b": 49
  },
  "hsl": {
    "h": 59.048,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.72722,
    "c": 0.14039,
    "h": 108.5
  },
  "luminance": 0.39223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFAD31

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

Preview Lab → · Contrast checker → · Palette generator →

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