#AF9937#AF9937

#AF9937 is a light, moderate yellow. Relative luminance 0.322; OKLCH L 68.4% C 0.119 H 96.4°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#AF9937
RGBrgb(175, 153, 55)
HSLhsl(49, 52%, 45%)
HSVhsv(49, 69%, 69%)
CMYKcmyk(0%, 12.6%, 68.6%, 31.4%)
CIE-LABlab(63.49, -3.09, 52.39)
CIE-LCHlch(63.49, 52.48, 93.37°)
OKLaboklab(68.42% -0.0132 0.1178)
OKLCHoklch(68.42% 0.119 96.4)
XYZxyz(29.7614, 32.1738, 8.2562)
Luminance0.3217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9937 #374DAF
analogous
#AF5D37 #AF9937 #89AF37
triadic
#AF9937 #37AF99 #9937AF
tetradic
#AF9937 #37AF5D #374DAF #AF3789
square
#AF9937 #37AF5D #374DAF #AF3789
split-complementary
#AF9937 #3789AF #5D37AF
monochromatic
#52481A #807028 #AF9937 #CBB659 #D9CA87

Accessibility & contrast

On white

2.82
#AF9937 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#AF9937 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9937
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9937#FFFFFF#000000##000000
##AF99371.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8962A
Deuteranopia (green-blind)
#AE9D3C
Tritanopia (blue-blind)
#BD8E85
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #af9937;
/* rgb */ color: rgb(175, 153, 55);
/* oklch */ color: oklch(68.4% 0.119 96.4);
Tailwind
colors: {
  custom: {
    50: '#cab673',
    500: '#af9937',
    950: '#000000',
  },
}
SCSS
$custom: #af9937;
$custom-light: #cab673;
$custom-dark: #000000;
JSON
{
  "hex": "#af9937",
  "rgb": {
    "r": 175,
    "g": 153,
    "b": 55
  },
  "hsl": {
    "h": 49,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.68421,
    "c": 0.11851,
    "h": 96.4
  },
  "luminance": 0.32172
}

Semantic roles & 50–950 ramp

primary
#AF9937
secondary
#7F8BC3
accent
#66DC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9937

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

Preview Lab → · Contrast checker → · Palette generator →

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