#9F8B2E#9F8B2E

#9F8B2E is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.113 H 96.8°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9F8B2E
RGBrgb(159, 139, 46)
HSLhsl(49, 55%, 40%)
HSVhsv(49, 71%, 62%)
CMYKcmyk(0%, 12.6%, 71.1%, 37.6%)
CIE-LABlab(58.07, -3.13, 50.17)
CIE-LCHlch(58.07, 50.27, 93.57°)
OKLaboklab(63.75% -0.0134 0.112)
OKLCHoklch(63.75% 0.113 96.8)
XYZxyz(24.0250, 26.0346, 6.3440)
Luminance0.2603 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B2E #2E429F
analogous
#9F532E #9F8B2E #7A9F2E
triadic
#9F8B2E #2E9F8B #8B2E9F
tetradic
#9F8B2E #2E9F53 #2E429F #9F2E7A
square
#9F8B2E #2E9F53 #2E429F #9F2E7A
split-complementary
#9F8B2E #2E7A9F #532E9F
monochromatic
#403813 #706220 #9F8B2E #C8B142 #D6C471

Accessibility & contrast

On white

3.38
#9F8B2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9F8B2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B2E
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B2E#FFFFFF#000000##000000
##9F8B2E1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#998821
Deuteranopia (green-blind)
#9E8E33
Tritanopia (blue-blind)
#AC8078
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9f8b2e;
/* rgb */ color: rgb(159, 139, 46);
/* oklch */ color: oklch(63.7% 0.113 96.8);
Tailwind
colors: {
  custom: {
    50: '#bfac6c',
    500: '#9f8b2e',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b2e;
$custom-light: #bfac6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b2e",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 46
  },
  "hsl": {
    "h": 49.381,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.6375,
    "c": 0.11282,
    "h": 96.8
  },
  "luminance": 0.26033
}

Semantic roles & 50–950 ramp

primary
#9F8B2E
secondary
#6B7ABE
accent
#64DE49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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