#9D851F#9D851F

#9D851F is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.1% C 0.118 H 94.9°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#9D851F
RGBrgb(157, 133, 31)
HSLhsl(49, 67%, 37%)
HSVhsv(49, 80%, 62%)
CMYKcmyk(0%, 15.3%, 80.3%, 38.4%)
CIE-LABlab(56.13, -1.42, 53.96)
CIE-LCHlch(56.13, 53.98, 91.51°)
OKLaboklab(62.14% -0.01 0.1172)
OKLCHoklch(62.14% 0.118 94.9)
XYZxyz(22.5407, 24.0434, 4.7496)
Luminance0.2404 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D851F #1F379D
analogous
#9D461F #9D851F #769D1F
triadic
#9D851F #1F9D85 #851F9D
tetradic
#9D851F #1F9D46 #1F379D #9D1F76
square
#9D851F #1F9D46 #1F379D #9D1F76
split-complementary
#9D851F #1F769D #461F9D
monochromatic
#372E0B #6A5A15 #9D851F #D0B029 #DEC558

Accessibility & contrast

On white

3.62
#9D851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#9D851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D851F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D851F#FFFFFF#000000##000000
##9D851F1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948206
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#AA7A72
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d851f;
/* rgb */ color: rgb(157, 133, 31);
/* oklch */ color: oklch(62.1% 0.118 94.9);
Tailwind
colors: {
  custom: {
    50: '#bea864',
    500: '#9d851f',
    950: '#000000',
  },
}
SCSS
$custom: #9d851f;
$custom-light: #bea864;
$custom-dark: #000000;
JSON
{
  "hex": "#9d851f",
  "rgb": {
    "r": 157,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 48.571,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.6214,
    "c": 0.11758,
    "h": 94.9
  },
  "luminance": 0.24042
}

Semantic roles & 50–950 ramp

primary
#9D851F
secondary
#566AC2
accent
#5FEA3E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9D851F

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

Preview Lab → · Contrast checker → · Palette generator →

#9D851F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva