#9F8E2F#9F8E2F

#9F8E2F is a light, moderate yellow. Relative luminance 0.269; OKLCH L 64.4% C 0.115 H 98.9°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#9F8E2F
RGBrgb(159, 142, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 62%)
CMYKcmyk(0%, 10.7%, 70.4%, 37.6%)
CIE-LABlab(58.90, -4.71, 50.60)
CIE-LCHlch(58.90, 50.82, 95.32°)
OKLaboklab(64.41% -0.0178 0.1131)
OKLCHoklch(64.41% 0.115 98.9)
XYZxyz(24.4853, 26.9233, 6.5958)
Luminance0.2692 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E2F #2F409F
analogous
#9F562F #9F8E2F #789F2F
triadic
#9F8E2F #2F9F8E #8E2F9F
tetradic
#9F8E2F #2F9F56 #2F409F #9F2F78
square
#9F8E2F #2F9F56 #2F409F #9F2F78
split-complementary
#9F8E2F #2F789F #562F9F
monochromatic
#413A13 #706421 #9F8E2F #C8B444 #D6C773

Accessibility & contrast

On white

3.29
#9F8E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#9F8E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E2F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E2F#FFFFFF#000000##000000
##9F8E2F1.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A21
Deuteranopia (green-blind)
#A09035
Tritanopia (blue-blind)
#AB837B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8e2f;
/* rgb */ color: rgb(159, 142, 47);
/* oklch */ color: oklch(64.4% 0.115 98.9);
Tailwind
colors: {
  custom: {
    50: '#bfae6d',
    500: '#9f8e2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e2f;
$custom-light: #bfae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e2f",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 47
  },
  "hsl": {
    "h": 50.893,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.64413,
    "c": 0.1145,
    "h": 98.9
  },
  "luminance": 0.26922
}

Semantic roles & 50–950 ramp

primary
#9F8E2F
secondary
#6D79BD
accent
#60DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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