#9D8F2C#9D8F2C

#9D8F2C is a light, moderate yellow. Relative luminance 0.270; OKLCH L 64.4% C 0.117 H 101.1°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#9D8F2C
RGBrgb(157, 143, 44)
HSLhsl(53, 56%, 39%)
HSVhsv(53, 72%, 62%)
CMYKcmyk(0%, 8.9%, 72%, 38.4%)
CIE-LABlab(58.97, -6.32, 51.83)
CIE-LCHlch(58.97, 52.21, 96.95°)
OKLaboklab(64.42% -0.0225 0.1152)
OKLCHoklch(64.42% 0.117 101.1)
XYZxyz(24.1828, 26.9960, 6.3193)
Luminance0.2700 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8F2C #2C3A9D
analogous
#9D562C #9D8F2C #739D2C
triadic
#9D8F2C #2C9D8F #8F2C9D
tetradic
#9D8F2C #2C9D56 #2C3A9D #9D2C73
square
#9D8F2C #2C9D56 #2C3A9D #9D2C73
split-complementary
#9D8F2C #2C739D #562C9D
monochromatic
#3D3811 #6D631F #9D8F2C #C9B73D #D6C96D

Accessibility & contrast

On white

3.28
#9D8F2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#9D8F2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D8F2C
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D8F2C#FFFFFF#000000##000000
##9D8F2C1.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B1D
Deuteranopia (green-blind)
#A19032
Tritanopia (blue-blind)
#A9857B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9d8f2c;
/* rgb */ color: rgb(157, 143, 44);
/* oklch */ color: oklch(64.4% 0.117 101.1);
Tailwind
colors: {
  custom: {
    50: '#bdaf6c',
    500: '#9d8f2c',
    950: '#000000',
  },
}
SCSS
$custom: #9d8f2c;
$custom-light: #bdaf6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8f2c",
  "rgb": {
    "r": 157,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 52.566,
    "s": 56.219,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64415,
    "c": 0.11741,
    "h": 101.1
  },
  "luminance": 0.26995
}

Semantic roles & 50–950 ramp

primary
#9D8F2C
secondary
#6872BD
accent
#5BE048
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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