#9D8D2F#9D8D2F

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

Color values

HEX#9D8D2F
RGBrgb(157, 141, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 62%)
CMYKcmyk(0%, 10.2%, 70.1%, 38.4%)
CIE-LABlab(58.44, -5.07, 50.06)
CIE-LCHlch(58.44, 50.32, 95.78°)
OKLaboklab(64% -0.0186 0.1121)
OKLCHoklch(64% 0.114 99.4)
XYZxyz(23.9437, 26.4242, 6.5280)
Luminance0.2642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D8D2F #2F3F9D
analogous
#9D562F #9D8D2F #769D2F
triadic
#9D8D2F #2F9D8D #8D2F9D
tetradic
#9D8D2F #2F9D56 #2F3F9D #9D2F76
square
#9D8D2F #2F9D56 #2F3F9D #9D2F76
split-complementary
#9D8D2F #2F769D #562F9D
monochromatic
#3F3813 #6E6321 #9D8D2F #C7B343 #D5C672

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D8D2F#FFFFFF#000000##000000
##9D8D2F1.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)
#9B8922
Deuteranopia (green-blind)
#9F8F35
Tritanopia (blue-blind)
#A9837A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9d8d2f;
/* rgb */ color: rgb(157, 141, 47);
/* oklch */ color: oklch(64.0% 0.114 99.4);
Tailwind
colors: {
  custom: {
    50: '#bdae6d',
    500: '#9d8d2f',
    950: '#000000',
  },
}
SCSS
$custom: #9d8d2f;
$custom-light: #bdae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9d8d2f",
  "rgb": {
    "r": 157,
    "g": 141,
    "b": 47
  },
  "hsl": {
    "h": 51.273,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.63999,
    "c": 0.1136,
    "h": 99.4
  },
  "luminance": 0.26423
}

Semantic roles & 50–950 ramp

primary
#9D8D2F
secondary
#6B77BC
accent
#60DD4B
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#121007
muted
#817F7A

Preview Lab

Preview with #9D8D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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