#AF9E33#AF9E33

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

Color values

HEX#AF9E33
RGBrgb(175, 158, 51)
HSLhsl(52, 55%, 44%)
HSVhsv(52, 71%, 69%)
CMYKcmyk(0%, 9.7%, 70.9%, 31.4%)
CIE-LABlab(64.81, -5.99, 55.39)
CIE-LCHlch(64.81, 55.71, 96.17°)
OKLaboklab(69.46% -0.0219 0.1234)
OKLCHoklch(69.46% 0.125 100.1)
XYZxyz(30.5050, 33.8081, 8.0501)
Luminance0.3381 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9E33 #3344AF
analogous
#AF6033 #AF9E33 #82AF33
triadic
#AF9E33 #33AF9E #9E33AF
tetradic
#AF9E33 #33AF60 #3344AF #AF3382
square
#AF9E33 #33AF60 #3344AF #AF3382
split-complementary
#AF9E33 #3382AF #6033AF
monochromatic
#504817 #807325 #AF9E33 #CDBC52 #DBCE82

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF9E33#FFFFFF#000000##000000
##AF9E331.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)
#AD9A23
Deuteranopia (green-blind)
#B2A03A
Tritanopia (blue-blind)
#BD9289
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #af9e33;
/* rgb */ color: rgb(175, 158, 51);
/* oklch */ color: oklch(69.5% 0.125 100.1);
Tailwind
colors: {
  custom: {
    50: '#caba71',
    500: '#af9e33',
    950: '#000000',
  },
}
SCSS
$custom: #af9e33;
$custom-light: #caba71;
$custom-dark: #000000;
JSON
{
  "hex": "#af9e33",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 51
  },
  "hsl": {
    "h": 51.774,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.69461,
    "c": 0.12532,
    "h": 100.1
  },
  "luminance": 0.33807
}

Semantic roles & 50–950 ramp

primary
#AF9E33
secondary
#7A84C4
accent
#5EDE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9E33

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

Preview Lab → · Contrast checker → · Palette generator →

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