#AF9F32#AF9F32

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

Color values

HEX#AF9F32
RGBrgb(175, 159, 50)
HSLhsl(52, 56%, 44%)
HSVhsv(52, 71%, 69%)
CMYKcmyk(0%, 9.1%, 71.4%, 31.4%)
CIE-LABlab(65.08, -6.57, 56.04)
CIE-LCHlch(65.08, 56.43, 96.69°)
OKLaboklab(69.67% -0.0236 0.1246)
OKLCHoklch(69.67% 0.127 100.7)
XYZxyz(30.6544, 34.1419, 7.9924)
Luminance0.3414 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F32 #3242AF
analogous
#AF6132 #AF9F32 #81AF32
triadic
#AF9F32 #32AF9F #9F32AF
tetradic
#AF9F32 #32AF61 #3242AF #AF3281
square
#AF9F32 #32AF61 #3242AF #AF3281
split-complementary
#AF9F32 #3281AF #6132AF
monochromatic
#504917 #7F7424 #AF9F32 #CDBD51 #DBCF81

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9F32#FFFFFF#000000##000000
##AF9F321.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)
#AE9A21
Deuteranopia (green-blind)
#B3A139
Tritanopia (blue-blind)
#BD9389
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #af9f32;
/* rgb */ color: rgb(175, 159, 50);
/* oklch */ color: oklch(69.7% 0.127 100.7);
Tailwind
colors: {
  custom: {
    50: '#cabb71',
    500: '#af9f32',
    950: '#000000',
  },
}
SCSS
$custom: #af9f32;
$custom-light: #cabb71;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f32",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 50
  },
  "hsl": {
    "h": 52.32,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.69669,
    "c": 0.12682,
    "h": 100.7
  },
  "luminance": 0.34141
}

Semantic roles & 50–950 ramp

primary
#AF9F32
secondary
#7982C4
accent
#5CDF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9F32

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

Preview Lab → · Contrast checker → · Palette generator →

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