#9D8E2C#9D8E2C

#9D8E2C is a light, moderate yellow. Relative luminance 0.267; OKLCH L 64.2% C 0.117 H 100.4°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#9D8E2C
RGBrgb(157, 142, 44)
HSLhsl(52, 56%, 39%)
HSVhsv(52, 72%, 62%)
CMYKcmyk(0%, 9.6%, 72%, 38.4%)
CIE-LABlab(58.69, -5.78, 51.55)
CIE-LCHlch(58.69, 51.87, 96.39°)
OKLaboklab(64.19% -0.021 0.1147)
OKLCHoklch(64.19% 0.117 100.4)
XYZxyz(24.0333, 26.6971, 6.2695)
Luminance0.2670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8E2C #2C3B9D
analogous
#9D552C #9D8E2C #749D2C
triadic
#9D8E2C #2C9D8E #8E2C9D
tetradic
#9D8E2C #2C9D55 #2C3B9D #9D2C74
square
#9D8E2C #2C9D55 #2C3B9D #9D2C74
split-complementary
#9D8E2C #2C749D #552C9D
monochromatic
#3D3811 #6D631F #9D8E2C #C9B63D #D6C86D

Accessibility & contrast

On white

3.31
#9D8E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#9D8E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8E2C
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8E2C#FFFFFF#000000##000000
##9D8E2C1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1D
Deuteranopia (green-blind)
#A09032
Tritanopia (blue-blind)
#A9847A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9d8e2c;
/* rgb */ color: rgb(157, 142, 44);
/* oklch */ color: oklch(64.2% 0.117 100.4);
Tailwind
colors: {
  custom: {
    50: '#bdae6c',
    500: '#9d8e2c',
    950: '#000000',
  },
}
SCSS
$custom: #9d8e2c;
$custom-light: #bdae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8e2c",
  "rgb": {
    "r": 157,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 52.035,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64194,
    "c": 0.11656,
    "h": 100.4
  },
  "luminance": 0.26696
}

Semantic roles & 50–950 ramp

primary
#9D8E2C
secondary
#6873BD
accent
#5CE048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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