#9D8B2E#9D8B2E

#9D8B2E is a light, moderate yellow. Relative luminance 0.258; OKLCH L 63.6% C 0.113 H 98.1°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9D8B2E
RGBrgb(157, 139, 46)
HSLhsl(50, 55%, 40%)
HSVhsv(50, 71%, 62%)
CMYKcmyk(0%, 11.5%, 70.7%, 38.4%)
CIE-LABlab(57.88, -4.03, 49.91)
CIE-LCHlch(57.88, 50.08, 94.62°)
OKLaboklab(63.55% -0.0158 0.1116)
OKLCHoklch(63.55% 0.113 98.1)
XYZxyz(23.6315, 25.8317, 6.3255)
Luminance0.2583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8B2E #2E409D
analogous
#9D532E #9D8B2E #789D2E
triadic
#9D8B2E #2E9D8B #8B2E9D
tetradic
#9D8B2E #2E9D53 #2E409D #9D2E78
square
#9D8B2E #2E9D53 #2E409D #9D2E78
split-complementary
#9D8B2E #2E789D #532E9D
monochromatic
#3E3712 #6E6120 #9D8B2E #C7B241 #D5C570

Accessibility & contrast

On white

3.41
#9D8B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9D8B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8B2E
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8B2E#FFFFFF#000000##000000
##9D8B2E1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#998821
Deuteranopia (green-blind)
#9E8E33
Tritanopia (blue-blind)
#A98178
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9d8b2e;
/* rgb */ color: rgb(157, 139, 46);
/* oklch */ color: oklch(63.6% 0.113 98.1);
Tailwind
colors: {
  custom: {
    50: '#bdac6c',
    500: '#9d8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #9d8b2e;
$custom-light: #bdac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8b2e",
  "rgb": {
    "r": 157,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 50.27,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.63552,
    "c": 0.11267,
    "h": 98.1
  },
  "luminance": 0.25831
}

Semantic roles & 50–950 ramp

primary
#9D8B2E
secondary
#6A78BD
accent
#62DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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