#9F8A2D#9F8A2D

#9F8A2D is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.113 H 96.1°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9F8A2D
RGBrgb(159, 138, 45)
HSLhsl(49, 56%, 40%)
HSVhsv(49, 72%, 62%)
CMYKcmyk(0%, 13.2%, 71.7%, 37.6%)
CIE-LABlab(57.79, -2.63, 50.30)
CIE-LCHlch(57.79, 50.37, 93.00°)
OKLaboklab(63.53% -0.0121 0.1121)
OKLCHoklch(63.53% 0.113 96.1)
XYZxyz(23.8614, 25.7386, 6.1933)
Luminance0.2574 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2D #2D429F
analogous
#9F512D #9F8A2D #7B9F2D
triadic
#9F8A2D #2D9F8A #8A2D9F
tetradic
#9F8A2D #2D9F51 #2D429F #9F2D7B
square
#9F8A2D #2D9F51 #2D429F #9F2D7B
split-complementary
#9F8A2D #2D7B9F #512D9F
monochromatic
#403712 #6F6120 #9F8A2D #C9B040 #D6C470

Accessibility & contrast

On white

3.42
#9F8A2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9F8A2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2D
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2D#FFFFFF#000000##000000
##9F8A2D1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871F
Deuteranopia (green-blind)
#9E8E32
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a2d;
/* rgb */ color: rgb(159, 138, 45);
/* oklch */ color: oklch(63.5% 0.113 96.1);
Tailwind
colors: {
  custom: {
    50: '#bfab6c',
    500: '#9f8a2d',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2d;
$custom-light: #bfab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2d",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 45
  },
  "hsl": {
    "h": 48.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.63525,
    "c": 0.11278,
    "h": 96.1
  },
  "luminance": 0.25737
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F8A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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