#9D8D2D#9D8D2D

#9D8D2D is a light, moderate yellow. Relative luminance 0.264; OKLCH L 64.0% C 0.115 H 99.6°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#9D8D2D
RGBrgb(157, 141, 45)
HSLhsl(51, 55%, 40%)
HSVhsv(51, 71%, 62%)
CMYKcmyk(0%, 10.2%, 71.3%, 38.4%)
CIE-LABlab(58.42, -5.18, 50.88)
CIE-LCHlch(58.42, 51.14, 95.81°)
OKLaboklab(63.98% -0.0192 0.1134)
OKLCHoklch(63.98% 0.115 99.6)
XYZxyz(23.9043, 26.4084, 6.3203)
Luminance0.2641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D2D #2D3D9D
analogous
#9D552D #9D8D2D #759D2D
triadic
#9D8D2D #2D9D8D #8D2D9D
tetradic
#9D8D2D #2D9D55 #2D3D9D #9D2D75
square
#9D8D2D #2D9D55 #2D3D9D #9D2D75
split-complementary
#9D8D2D #2D759D #552D9D
monochromatic
#3E3812 #6D621F #9D8D2D #C8B43F #D6C76F

Accessibility & contrast

On white

3.34
#9D8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#9D8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8D2D
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8D2D#FFFFFF#000000##000000
##9D8D2D1.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891F
Deuteranopia (green-blind)
#9F8F33
Tritanopia (blue-blind)
#A9837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d2d;
/* rgb */ color: rgb(157, 141, 45);
/* oklch */ color: oklch(64.0% 0.115 99.6);
Tailwind
colors: {
  custom: {
    50: '#bdae6c',
    500: '#9d8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d2d;
$custom-light: #bdae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d2d",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 51.429,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.63982,
    "c": 0.11502,
    "h": 99.6
  },
  "luminance": 0.26407
}

Semantic roles & 50–950 ramp

primary
#9D8D2D
secondary
#6975BD
accent
#5EDF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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