#AF9538#AF9538

#AF9538 is a light, moderate yellow. Relative luminance 0.309; OKLCH L 67.6% C 0.115 H 93.3°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#AF9538
RGBrgb(175, 149, 56)
HSLhsl(47, 52%, 45%)
HSVhsv(47, 68%, 69%)
CMYKcmyk(0%, 14.9%, 68%, 31.4%)
CIE-LABlab(62.42, -0.86, 50.85)
CIE-LCHlch(62.42, 50.86, 90.97°)
OKLaboklab(67.58% -0.0067 0.1147)
OKLCHoklch(67.58% 0.115 93.3)
XYZxyz(29.1419, 30.8960, 8.1692)
Luminance0.3089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9538 #3852AF
analogous
#AF5A38 #AF9538 #8DAF38
triadic
#AF9538 #38AF95 #9538AF
tetradic
#AF9538 #38AF5A #3852AF #AF388D
square
#AF9538 #38AF5A #3852AF #AF388D
split-complementary
#AF9538 #388DAF #5A38AF
monochromatic
#52461A #816E29 #AF9538 #CAB25A #D9C788

Accessibility & contrast

On white

2.93
#AF9538 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#AF9538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9538
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9538#FFFFFF#000000##000000
##AF95381.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4922C
Deuteranopia (green-blind)
#AB9A3D
Tritanopia (blue-blind)
#BD8982
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #af9538;
/* rgb */ color: rgb(175, 149, 56);
/* oklch */ color: oklch(67.6% 0.115 93.3);
Tailwind
colors: {
  custom: {
    50: '#cab373',
    500: '#af9538',
    950: '#000000',
  },
}
SCSS
$custom: #af9538;
$custom-light: #cab373;
$custom-dark: #000000;
JSON
{
  "hex": "#af9538",
  "rgb": {
    "r": 175,
    "g": 149,
    "b": 56
  },
  "hsl": {
    "h": 46.891,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.67581,
    "c": 0.11488,
    "h": 93.3
  },
  "luminance": 0.30894
}

Semantic roles & 50–950 ramp

primary
#AF9538
secondary
#808EC3
accent
#6CDB4D
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141108
muted
#82807B

Preview Lab

Preview with #AF9538

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

Preview Lab → · Contrast checker → · Palette generator →

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