#9F8E2E#9F8E2E

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

Color values

HEX#9F8E2E
RGBrgb(159, 142, 46)
HSLhsl(51, 55%, 40%)
HSVhsv(51, 71%, 62%)
CMYKcmyk(0%, 10.7%, 71.1%, 37.6%)
CIE-LABlab(58.90, -4.77, 51.00)
CIE-LCHlch(58.90, 51.23, 95.34°)
OKLaboklab(64.41% -0.018 0.1138)
OKLCHoklch(64.41% 0.115 99)
XYZxyz(24.4654, 26.9154, 6.4907)
Luminance0.2691 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E2E #2E3F9F
analogous
#9F552E #9F8E2E #789F2E
triadic
#9F8E2E #2E9F8E #8E2E9F
tetradic
#9F8E2E #2E9F55 #2E3F9F #9F2E78
square
#9F8E2E #2E9F55 #2E3F9F #9F2E78
split-complementary
#9F8E2E #2E789F #552E9F
monochromatic
#403913 #706420 #9F8E2E #C8B442 #D6C771

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8E2E#FFFFFF#000000##000000
##9F8E2E1.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)
#9C8A20
Deuteranopia (green-blind)
#A09034
Tritanopia (blue-blind)
#AB837B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8e2e;
/* rgb */ color: rgb(159, 142, 46);
/* oklch */ color: oklch(64.4% 0.115 99.0);
Tailwind
colors: {
  custom: {
    50: '#bfae6d',
    500: '#9f8e2e',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e2e;
$custom-light: #bfae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e2e",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 50.973,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64405,
    "c": 0.11521,
    "h": 99
  },
  "luminance": 0.26914
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9F8E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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