#AF9B33#AF9B33

#AF9B33 is a light, vivid yellow. Relative luminance 0.328; OKLCH L 68.8% C 0.123 H 98.1°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#AF9B33
RGBrgb(175, 155, 51)
HSLhsl(50, 55%, 44%)
HSVhsv(50, 71%, 69%)
CMYKcmyk(0%, 11.4%, 70.9%, 31.4%)
CIE-LABlab(64.00, -4.38, 54.57)
CIE-LCHlch(64.00, 54.75, 94.59°)
OKLaboklab(68.82% -0.0173 0.1217)
OKLCHoklch(68.82% 0.123 98.1)
XYZxyz(29.9995, 32.7971, 7.8816)
Luminance0.3280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9B33 #3347AF
analogous
#AF5D33 #AF9B33 #85AF33
triadic
#AF9B33 #33AF9B #9B33AF
tetradic
#AF9B33 #33AF5D #3347AF #AF3385
square
#AF9B33 #33AF5D #3347AF #AF3385
split-complementary
#AF9B33 #3385AF #5D33AF
monochromatic
#504717 #807125 #AF9B33 #CDB952 #DBCC82

Accessibility & contrast

On white

2.78
#AF9B33 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#AF9B33 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9B33
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9B33#FFFFFF#000000##000000
##AF9B331.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AA9724
Deuteranopia (green-blind)
#B09E39
Tritanopia (blue-blind)
#BD8F86
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #af9b33;
/* rgb */ color: rgb(175, 155, 51);
/* oklch */ color: oklch(68.8% 0.123 98.1);
Tailwind
colors: {
  custom: {
    50: '#cab871',
    500: '#af9b33',
    950: '#000000',
  },
}
SCSS
$custom: #af9b33;
$custom-light: #cab871;
$custom-dark: #000000;
JSON
{
  "hex": "#af9b33",
  "rgb": {
    "r": 175,
    "g": 155,
    "b": 51
  },
  "hsl": {
    "h": 50.323,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.68816,
    "c": 0.1229,
    "h": 98.1
  },
  "luminance": 0.32796
}

Semantic roles & 50–950 ramp

primary
#AF9B33
secondary
#7A86C4
accent
#62DE4A
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9B33

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

Preview Lab → · Contrast checker → · Palette generator →

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