#9F8D2D#9F8D2D

#9F8D2D is a light, moderate yellow. Relative luminance 0.266; OKLCH L 64.2% C 0.115 H 98.4°. Best body text is #000000 at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#9F8D2D
RGBrgb(159, 141, 45)
HSLhsl(51, 56%, 40%)
HSVhsv(51, 72%, 62%)
CMYKcmyk(0%, 11.3%, 71.7%, 37.6%)
CIE-LABlab(58.61, -4.28, 51.13)
CIE-LCHlch(58.61, 51.31, 94.78°)
OKLaboklab(64.18% -0.0167 0.1139)
OKLCHoklch(64.18% 0.115 98.4)
XYZxyz(24.2978, 26.6113, 6.3388)
Luminance0.2661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D2D #2D3F9F
analogous
#9F542D #9F8D2D #789F2D
triadic
#9F8D2D #2D9F8D #8D2D9F
tetradic
#9F8D2D #2D9F54 #2D3F9F #9F2D78
square
#9F8D2D #2D9F54 #2D3F9F #9F2D78
split-complementary
#9F8D2D #2D789F #542D9F
monochromatic
#403812 #6F6320 #9F8D2D #C9B340 #D6C670

Accessibility & contrast

On white

3.32
#9F8D2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#9F8D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D2D
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D2D#FFFFFF#000000##000000
##9F8D2D1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B891F
Deuteranopia (green-blind)
#A09033
Tritanopia (blue-blind)
#AC827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d2d;
/* rgb */ color: rgb(159, 141, 45);
/* oklch */ color: oklch(64.2% 0.115 98.4);
Tailwind
colors: {
  custom: {
    50: '#bfae6c',
    500: '#9f8d2d',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d2d;
$custom-light: #bfae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d2d",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 45
  },
  "hsl": {
    "h": 50.526,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.64178,
    "c": 0.1151,
    "h": 98.4
  },
  "luminance": 0.2661
}

Semantic roles & 50–950 ramp

primary
#9F8D2D
secondary
#6A77BE
accent
#60DF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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