#AF9E31#AF9E31

#AF9E31 is a light, vivid yellow. Relative luminance 0.338; OKLCH L 69.4% C 0.127 H 100.2°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#AF9E31
RGBrgb(175, 158, 49)
HSLhsl(52, 56%, 44%)
HSVhsv(52, 72%, 69%)
CMYKcmyk(0%, 9.7%, 72%, 31.4%)
CIE-LABlab(64.80, -6.09, 56.16)
CIE-LCHlch(64.80, 56.49, 96.19°)
OKLaboklab(69.45% -0.0224 0.1247)
OKLCHoklch(69.45% 0.127 100.2)
XYZxyz(30.4618, 33.7908, 7.8229)
Luminance0.3379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E31 #3142AF
analogous
#AF5F31 #AF9E31 #81AF31
triadic
#AF9E31 #31AF9E #9E31AF
tetradic
#AF9E31 #31AF5F #3142AF #AF3181
square
#AF9E31 #31AF5F #3142AF #AF3181
split-complementary
#AF9E31 #3181AF #5F31AF
monochromatic
#4F4816 #7F7324 #AF9E31 #CEBD4F #DBCF7F

Accessibility & contrast

On white

2.71
#AF9E31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#AF9E31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9E31
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9E31#FFFFFF#000000##000000
##AF9E311.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A20
Deuteranopia (green-blind)
#B2A038
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e31;
/* rgb */ color: rgb(175, 158, 49);
/* oklch */ color: oklch(69.4% 0.127 100.2);
Tailwind
colors: {
  custom: {
    50: '#caba70',
    500: '#af9e31',
    950: '#000000',
  },
}
SCSS
$custom: #af9e31;
$custom-light: #caba70;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e31",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 49
  },
  "hsl": {
    "h": 51.905,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69445,
    "c": 0.12665,
    "h": 100.2
  },
  "luminance": 0.33789
}

Semantic roles & 50–950 ramp

primary
#AF9E31
secondary
#7882C4
accent
#5DE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E31

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

Preview Lab → · Contrast checker → · Palette generator →

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