#9D862B#9D862B

#9D862B is a light, moderate yellow. Relative luminance 0.244; OKLCH L 62.4% C 0.111 H 94.5°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#9D862B
RGBrgb(157, 134, 43)
HSLhsl(48, 57%, 39%)
HSVhsv(48, 73%, 62%)
CMYKcmyk(0%, 14.6%, 72.6%, 38.4%)
CIE-LABlab(56.48, -1.44, 49.76)
CIE-LCHlch(56.48, 49.78, 91.66°)
OKLaboklab(62.44% -0.0088 0.1107)
OKLCHoklch(62.44% 0.111 94.5)
XYZxyz(22.8670, 24.3940, 5.7891)
Luminance0.2439 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D862B #2B429D
analogous
#9D4D2B #9D862B #7B9D2B
triadic
#9D862B #2B9D86 #862B9D
tetradic
#9D862B #2B9D4D #2B429D #9D2B7B
square
#9D862B #2B9D4D #2B429D #9D2B7B
split-complementary
#9D862B #2B7B9D #4D2B9D
monochromatic
#3D3411 #6D5D1E #9D862B #CAAD3C #D7C16C

Accessibility & contrast

On white

3.57
#9D862B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#9D862B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D862B
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D862B#FFFFFF#000000##000000
##9D862B1.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94831E
Deuteranopia (green-blind)
#9A8A30
Tritanopia (blue-blind)
#AA7B74
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9d862b;
/* rgb */ color: rgb(157, 134, 43);
/* oklch */ color: oklch(62.4% 0.111 94.5);
Tailwind
colors: {
  custom: {
    50: '#bda86a',
    500: '#9d862b',
    950: '#000000',
  },
}
SCSS
$custom: #9d862b;
$custom-light: #bda86a;
$custom-dark: #000000;
JSON
{
  "hex": "#9d862b",
  "rgb": {
    "r": 157,
    "g": 134,
    "b": 43
  },
  "hsl": {
    "h": 47.895,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.62439,
    "c": 0.11102,
    "h": 94.5
  },
  "luminance": 0.24393
}

Semantic roles & 50–950 ramp

primary
#9D862B
secondary
#6678BD
accent
#66E048
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9D862B

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

Preview Lab → · Contrast checker → · Palette generator →

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