#AF9F31#AF9F31

#AF9F31 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.7% C 0.127 H 100.8°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#AF9F31
RGBrgb(175, 159, 49)
HSLhsl(52, 56%, 44%)
HSVhsv(52, 72%, 69%)
CMYKcmyk(0%, 9.1%, 72%, 31.4%)
CIE-LABlab(65.07, -6.62, 56.43)
CIE-LCHlch(65.07, 56.81, 96.69°)
OKLaboklab(69.66% -0.0239 0.1252)
OKLCHoklch(69.66% 0.127 100.8)
XYZxyz(30.6331, 34.1334, 7.8800)
Luminance0.3413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F31 #3141AF
analogous
#AF6031 #AF9F31 #80AF31
triadic
#AF9F31 #31AF9F #9F31AF
tetradic
#AF9F31 #31AF60 #3141AF #AF3180
square
#AF9F31 #31AF60 #3141AF #AF3180
split-complementary
#AF9F31 #3180AF #6031AF
monochromatic
#4F4816 #7F7424 #AF9F31 #CEBE4F #DBD07F

Accessibility & contrast

On white

2.68
#AF9F31 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#AF9F31 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F31
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F31#FFFFFF#000000##000000
##AF9F311.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A1F
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#BD9389
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f31;
/* rgb */ color: rgb(175, 159, 49);
/* oklch */ color: oklch(69.7% 0.127 100.8);
Tailwind
colors: {
  custom: {
    50: '#cabb70',
    500: '#af9f31',
    950: '#000000',
  },
}
SCSS
$custom: #af9f31;
$custom-light: #cabb70;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f31",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 49
  },
  "hsl": {
    "h": 52.381,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.69661,
    "c": 0.12749,
    "h": 100.8
  },
  "luminance": 0.34132
}

Semantic roles & 50–950 ramp

primary
#AF9F31
secondary
#7881C4
accent
#5BE048
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F31

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

Preview Lab → · Contrast checker → · Palette generator →

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