#AF9732#AF9732

#AF9732 is a light, vivid yellow. Relative luminance 0.315; OKLCH L 68.0% C 0.121 H 95.4°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#AF9732
RGBrgb(175, 151, 50)
HSLhsl(48, 56%, 44%)
HSVhsv(48, 71%, 69%)
CMYKcmyk(0%, 13.7%, 71.4%, 31.4%)
CIE-LABlab(62.91, -2.28, 53.89)
CIE-LCHlch(62.91, 53.94, 92.42°)
OKLaboklab(67.95% -0.0114 0.1201)
OKLCHoklch(67.95% 0.121 95.4)
XYZxyz(29.3230, 31.4790, 7.5485)
Luminance0.3148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9732 #324AAF
analogous
#AF5932 #AF9732 #89AF32
triadic
#AF9732 #32AF97 #9732AF
tetradic
#AF9732 #32AF59 #324AAF #AF3289
square
#AF9732 #32AF59 #324AAF #AF3289
split-complementary
#AF9732 #3289AF #5932AF
monochromatic
#504517 #7F6E24 #AF9732 #CDB551 #DBCA81

Accessibility & contrast

On white

2.88
#AF9732 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#AF9732 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9732
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9732#FFFFFF#000000##000000
##AF97321.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79423
Deuteranopia (green-blind)
#AD9B38
Tritanopia (blue-blind)
#BD8B83
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9732;
/* rgb */ color: rgb(175, 151, 50);
/* oklch */ color: oklch(68.0% 0.121 95.4);
Tailwind
colors: {
  custom: {
    50: '#cab570',
    500: '#af9732',
    950: '#000000',
  },
}
SCSS
$custom: #af9732;
$custom-light: #cab570;
$custom-dark: #000000;
JSON
{
  "hex": "#af9732",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 50
  },
  "hsl": {
    "h": 48.48,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.67953,
    "c": 0.12059,
    "h": 95.4
  },
  "luminance": 0.31477
}

Semantic roles & 50–950 ramp

primary
#AF9732
secondary
#7987C4
accent
#66DF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9732

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

Preview Lab → · Contrast checker → · Palette generator →

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