#9F8F2E#9F8F2E

#9F8F2E is a light, moderate yellow. Relative luminance 0.272; OKLCH L 64.6% C 0.116 H 99.7°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#9F8F2E
RGBrgb(159, 143, 46)
HSLhsl(52, 55%, 40%)
HSVhsv(52, 71%, 62%)
CMYKcmyk(0%, 10.1%, 71.1%, 37.6%)
CIE-LABlab(59.17, -5.31, 51.28)
CIE-LCHlch(59.17, 51.55, 95.91°)
OKLaboklab(64.62% -0.0196 0.1144)
OKLCHoklch(64.62% 0.116 99.7)
XYZxyz(24.6148, 27.2143, 6.5406)
Luminance0.2721 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F2E #2E3E9F
analogous
#9F562E #9F8F2E #779F2E
triadic
#9F8F2E #2E9F8F #8F2E9F
tetradic
#9F8F2E #2E9F56 #2E3E9F #9F2E77
square
#9F8F2E #2E9F56 #2E3E9F #9F2E77
split-complementary
#9F8F2E #2E779F #562E9F
monochromatic
#403A13 #706420 #9F8F2E #C8B542 #D6C871

Accessibility & contrast

On white

3.26
#9F8F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#9F8F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F2E
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F2E#FFFFFF#000000##000000
##9F8F2E1.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8B20
Deuteranopia (green-blind)
#A19134
Tritanopia (blue-blind)
#AB847C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f2e;
/* rgb */ color: rgb(159, 143, 46);
/* oklch */ color: oklch(64.6% 0.116 99.7);
Tailwind
colors: {
  custom: {
    50: '#bfaf6d',
    500: '#9f8f2e',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f2e;
$custom-light: #bfaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f2e",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 51.504,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.64624,
    "c": 0.11603,
    "h": 99.7
  },
  "luminance": 0.27213
}

Semantic roles & 50–950 ramp

primary
#9F8F2E
secondary
#6B77BE
accent
#5EDE49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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