#9D8D2E#9D8D2E

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

Color values

HEX#9D8D2E
RGBrgb(157, 141, 46)
HSLhsl(51, 55%, 40%)
HSVhsv(51, 71%, 62%)
CMYKcmyk(0%, 10.2%, 70.7%, 38.4%)
CIE-LABlab(58.43, -5.12, 50.47)
CIE-LCHlch(58.43, 50.73, 95.80°)
OKLaboklab(63.99% -0.0189 0.1127)
OKLCHoklch(63.99% 0.114 99.5)
XYZxyz(23.9237, 26.4162, 6.4229)
Luminance0.2641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D2E #2E3E9D
analogous
#9D552E #9D8D2E #769D2E
triadic
#9D8D2E #2E9D8D #8D2E9D
tetradic
#9D8D2E #2E9D55 #2E3E9D #9D2E76
square
#9D8D2E #2E9D55 #2E3E9D #9D2E76
split-complementary
#9D8D2E #2E769D #552E9D
monochromatic
#3E3812 #6E6220 #9D8D2E #C7B441 #D5C770

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8D2E#FFFFFF#000000##000000
##9D8D2E1.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)
#9B8920
Deuteranopia (green-blind)
#9F8F34
Tritanopia (blue-blind)
#A9837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d2e;
/* rgb */ color: rgb(157, 141, 46);
/* oklch */ color: oklch(64.0% 0.114 99.5);
Tailwind
colors: {
  custom: {
    50: '#bdae6d',
    500: '#9d8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d2e;
$custom-light: #bdae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d2e",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 51.351,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.6399,
    "c": 0.11432,
    "h": 99.5
  },
  "luminance": 0.26415
}

Semantic roles & 50–950 ramp

primary
#9D8D2E
secondary
#6A76BD
accent
#5FDE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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