#AF9E32#AF9E32

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

Color values

HEX#AF9E32
RGBrgb(175, 158, 50)
HSLhsl(52, 56%, 44%)
HSVhsv(52, 71%, 69%)
CMYKcmyk(0%, 9.7%, 71.4%, 31.4%)
CIE-LABlab(64.80, -6.04, 55.77)
CIE-LCHlch(64.80, 56.10, 96.18°)
OKLaboklab(69.45% -0.0221 0.124)
OKLCHoklch(69.45% 0.126 100.1)
XYZxyz(30.4832, 33.7994, 7.9353)
Luminance0.3380 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E32 #3243AF
analogous
#AF6032 #AF9E32 #82AF32
triadic
#AF9E32 #32AF9E #9E32AF
tetradic
#AF9E32 #32AF60 #3243AF #AF3282
square
#AF9E32 #32AF60 #3243AF #AF3282
split-complementary
#AF9E32 #3282AF #6032AF
monochromatic
#504817 #7F7324 #AF9E32 #CDBC51 #DBCF81

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9E32#FFFFFF#000000##000000
##AF9E321.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)
#AD9A21
Deuteranopia (green-blind)
#B2A039
Tritanopia (blue-blind)
#BD9288
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e32;
/* rgb */ color: rgb(175, 158, 50);
/* oklch */ color: oklch(69.5% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#caba71',
    500: '#af9e32',
    950: '#000000',
  },
}
SCSS
$custom: #af9e32;
$custom-light: #caba71;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e32",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 50
  },
  "hsl": {
    "h": 51.84,
    "s": 55.556,
    "l": 44.118
  },
  "oklch": {
    "l": 0.69453,
    "c": 0.12599,
    "h": 100.1
  },
  "luminance": 0.33798
}

Semantic roles & 50–950 ramp

primary
#AF9E32
secondary
#7983C4
accent
#5DDF49
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E32

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

Preview Lab → · Contrast checker → · Palette generator →

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