#9F8B2D#9F8B2D

#9F8B2D is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.114 H 96.9°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9F8B2D
RGBrgb(159, 139, 45)
HSLhsl(49, 56%, 40%)
HSVhsv(49, 72%, 62%)
CMYKcmyk(0%, 12.6%, 71.7%, 37.6%)
CIE-LABlab(58.06, -3.18, 50.58)
CIE-LCHlch(58.06, 50.68, 93.60°)
OKLaboklab(63.74% -0.0136 0.1127)
OKLCHoklch(63.74% 0.114 96.9)
XYZxyz(24.0055, 26.0269, 6.2414)
Luminance0.2603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B2D #2D419F
analogous
#9F522D #9F8B2D #7A9F2D
triadic
#9F8B2D #2D9F8B #8B2D9F
tetradic
#9F8B2D #2D9F52 #2D419F #9F2D7A
square
#9F8B2D #2D9F52 #2D419F #9F2D7A
split-complementary
#9F8B2D #2D7A9F #522D9F
monochromatic
#403812 #6F6120 #9F8B2D #C9B140 #D6C570

Accessibility & contrast

On white

3.38
#9F8B2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9F8B2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B2D
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B2D#FFFFFF#000000##000000
##9F8B2D1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#99881F
Deuteranopia (green-blind)
#9E8E32
Tritanopia (blue-blind)
#AC8078
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9f8b2d;
/* rgb */ color: rgb(159, 139, 45);
/* oklch */ color: oklch(63.7% 0.114 96.9);
Tailwind
colors: {
  custom: {
    50: '#bfac6c',
    500: '#9f8b2d',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b2d;
$custom-light: #bfac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b2d",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 45
  },
  "hsl": {
    "h": 49.474,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.63742,
    "c": 0.11353,
    "h": 96.9
  },
  "luminance": 0.26026
}

Semantic roles & 50–950 ramp

primary
#9F8B2D
secondary
#6A79BE
accent
#63DF49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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