#AF9837#AF9837

#AF9837 is a light, moderate yellow. Relative luminance 0.318; OKLCH L 68.2% C 0.118 H 95.7°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#AF9837
RGBrgb(175, 152, 55)
HSLhsl(49, 52%, 45%)
HSVhsv(49, 69%, 69%)
CMYKcmyk(0%, 13.1%, 68.6%, 31.4%)
CIE-LABlab(63.22, -2.55, 52.11)
CIE-LCHlch(63.22, 52.18, 92.80°)
OKLaboklab(68.21% -0.0116 0.1172)
OKLCHoklch(68.21% 0.118 95.7)
XYZxyz(29.5984, 31.8478, 8.2019)
Luminance0.3185 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9837 #374EAF
analogous
#AF5C37 #AF9837 #8AAF37
triadic
#AF9837 #37AF98 #9837AF
tetradic
#AF9837 #37AF5C #374EAF #AF378A
square
#AF9837 #37AF5C #374EAF #AF378A
split-complementary
#AF9837 #378AAF #5C37AF
monochromatic
#52471A #807028 #AF9837 #CBB559 #D9CA87

Accessibility & contrast

On white

2.85
#AF9837 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#AF9837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9837
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9837#FFFFFF#000000##000000
##AF98371.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A7952A
Deuteranopia (green-blind)
#AD9C3C
Tritanopia (blue-blind)
#BD8C84
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9837;
/* rgb */ color: rgb(175, 152, 55);
/* oklch */ color: oklch(68.2% 0.118 95.7);
Tailwind
colors: {
  custom: {
    50: '#cab673',
    500: '#af9837',
    950: '#000000',
  },
}
SCSS
$custom: #af9837;
$custom-light: #cab673;
$custom-dark: #000000;
JSON
{
  "hex": "#af9837",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 55
  },
  "hsl": {
    "h": 48.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.68208,
    "c": 0.11776,
    "h": 95.7
  },
  "luminance": 0.31846
}

Semantic roles & 50–950 ramp

primary
#AF9837
secondary
#7F8CC3
accent
#68DC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9837

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

Preview Lab → · Contrast checker → · Palette generator →

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