#9D842E#9D842E

#9D842E is a light, moderate yellow. Relative luminance 0.239; OKLCH L 62.0% C 0.108 H 92.5°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#9D842E
RGBrgb(157, 132, 46)
HSLhsl(46, 55%, 40%)
HSVhsv(46, 71%, 62%)
CMYKcmyk(0%, 15.9%, 70.7%, 38.4%)
CIE-LABlab(55.96, -0.17, 47.96)
CIE-LCHlch(55.96, 47.96, 90.20°)
OKLaboklab(62.03% -0.0048 0.1074)
OKLCHoklch(62.03% 0.108 92.5)
XYZxyz(22.6502, 23.8692, 5.9984)
Luminance0.2387 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D842E #2E479D
analogous
#9D4C2E #9D842E #7F9D2E
triadic
#9D842E #2E9D84 #842E9D
tetradic
#9D842E #2E9D4C #2E479D #9D2E7F
square
#9D842E #2E9D4C #2E479D #9D2E7F
split-complementary
#9D842E #2E7F9D #4C2E9D
monochromatic
#3E3412 #6E5C20 #9D842E #C7A941 #D5BE70

Accessibility & contrast

On white

3.64
#9D842E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#9D842E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D842E
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D842E#FFFFFF#000000##000000
##9D842E1.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#928222
Deuteranopia (green-blind)
#988932
Tritanopia (blue-blind)
#AA7972
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9d842e;
/* rgb */ color: rgb(157, 132, 46);
/* oklch */ color: oklch(62.0% 0.108 92.5);
Tailwind
colors: {
  custom: {
    50: '#bda76c',
    500: '#9d842e',
    950: '#000000',
  },
}
SCSS
$custom: #9d842e;
$custom-light: #bda76c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d842e",
  "rgb": {
    "r": 157,
    "g": 132,
    "b": 46
  },
  "hsl": {
    "h": 46.486,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.62033,
    "c": 0.10754,
    "h": 92.5
  },
  "luminance": 0.23868
}

Semantic roles & 50–950 ramp

primary
#9D842E
secondary
#6A7DBD
accent
#6BDE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#130F07
muted
#827F7A

Preview Lab

Preview with #9D842E

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

Preview Lab → · Contrast checker → · Palette generator →

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