#9F8D2E#9F8D2E

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

Color values

HEX#9F8D2E
RGBrgb(159, 141, 46)
HSLhsl(50, 55%, 40%)
HSVhsv(50, 71%, 62%)
CMYKcmyk(0%, 11.3%, 71.1%, 37.6%)
CIE-LABlab(58.62, -4.22, 50.73)
CIE-LCHlch(58.62, 50.90, 94.76°)
OKLaboklab(64.19% -0.0165 0.1132)
OKLCHoklch(64.19% 0.114 98.3)
XYZxyz(24.3172, 26.6191, 6.4414)
Luminance0.2662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D2E #2E409F
analogous
#9F542E #9F8D2E #799F2E
triadic
#9F8D2E #2E9F8D #8D2E9F
tetradic
#9F8D2E #2E9F54 #2E409F #9F2E79
square
#9F8D2E #2E9F54 #2E409F #9F2E79
split-complementary
#9F8D2E #2E799F #542E9F
monochromatic
#403913 #706320 #9F8D2E #C8B342 #D6C671

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8D2E#FFFFFF#000000##000000
##9F8D2E1.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)
#9B8920
Deuteranopia (green-blind)
#A09034
Tritanopia (blue-blind)
#AC827A
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d2e;
/* rgb */ color: rgb(159, 141, 46);
/* oklch */ color: oklch(64.2% 0.114 98.3);
Tailwind
colors: {
  custom: {
    50: '#bfae6d',
    500: '#9f8d2e',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d2e;
$custom-light: #bfae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d2e",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 50.442,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64186,
    "c": 0.11439,
    "h": 98.3
  },
  "luminance": 0.26618
}

Semantic roles & 50–950 ramp

primary
#9F8D2E
secondary
#6B78BE
accent
#61DE49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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