#AF9F51#AF9F51

#AF9F51 is a light, moderate yellow. Relative luminance 0.345; OKLCH L 70.0% C 0.101 H 98.0°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#AF9F51
RGBrgb(175, 159, 81)
HSLhsl(50, 37%, 50%)
HSVhsv(50, 54%, 69%)
CMYKcmyk(0%, 9.1%, 53.7%, 31.4%)
CIE-LABlab(65.36, -4.45, 42.35)
CIE-LCHlch(65.36, 42.59, 96.00°)
OKLaboklab(69.99% -0.014 0.0998)
OKLCHoklch(69.99% 0.101 98)
XYZxyz(31.5636, 34.5056, 12.7806)
Luminance0.3450 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9F51 #5161AF
analogous
#AF7051 #AF9F51 #90AF51
triadic
#AF9F51 #51AF9F #9F51AF
tetradic
#AF9F51 #51AF70 #5161AF #AF5190
square
#AF9F51 #51AF70 #5161AF #AF5190
split-complementary
#AF9F51 #5190AF #7051AF
monochromatic
#5C532A #85793D #AF9F51 #C2B67B #D6CDA5

Accessibility & contrast

On white

2.66
#AF9F51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#AF9F51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9F51
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9F51#FFFFFF#000000##000000
##AF9F511.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9B4A
Deuteranopia (green-blind)
#B1A154
Tritanopia (blue-blind)
#BB958D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #af9f51;
/* rgb */ color: rgb(175, 159, 81);
/* oklch */ color: oklch(70.0% 0.101 98.0);
Tailwind
colors: {
  custom: {
    50: '#c9bb84',
    500: '#af9f51',
    950: '#000000',
  },
}
SCSS
$custom: #af9f51;
$custom-light: #c9bb84;
$custom-dark: #000000;
JSON
{
  "hex": "#af9f51",
  "rgb": {
    "r": 175,
    "g": 159,
    "b": 81
  },
  "hsl": {
    "h": 49.787,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.69988,
    "c": 0.10079,
    "h": 98
  },
  "luminance": 0.34504
}

Semantic roles & 50–950 ramp

primary
#AF9F51
secondary
#99A0C3
accent
#6ECD5B
background
#FCFBF8
surface
#F9F6EF
border
#D2D0CA
text
#13110B
muted
#82807C

Preview Lab

Preview with #AF9F51

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

Preview Lab → · Contrast checker → · Palette generator →

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