#9F8A2E#9F8A2E

#9F8A2E is a light, moderate yellow. Relative luminance 0.257; OKLCH L 63.5% C 0.112 H 96.0°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#9F8A2E
RGBrgb(159, 138, 46)
HSLhsl(49, 55%, 40%)
HSVhsv(49, 71%, 62%)
CMYKcmyk(0%, 13.2%, 71.1%, 37.6%)
CIE-LABlab(57.80, -2.58, 49.90)
CIE-LCHlch(57.80, 49.96, 92.96°)
OKLaboklab(63.53% -0.0118 0.1115)
OKLCHoklch(63.53% 0.112 96)
XYZxyz(23.8809, 25.7464, 6.2959)
Luminance0.2575 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A2E #2E439F
analogous
#9F522E #9F8A2E #7B9F2E
triadic
#9F8A2E #2E9F8A #8A2E9F
tetradic
#9F8A2E #2E9F52 #2E439F #9F2E7B
square
#9F8A2E #2E9F52 #2E439F #9F2E7B
split-complementary
#9F8A2E #2E7B9F #522E9F
monochromatic
#403813 #706120 #9F8A2E #C8AF42 #D6C371

Accessibility & contrast

On white

3.42
#9F8A2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#9F8A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A2E
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A2E#FFFFFF#000000##000000
##9F8A2E1.003.426.156.15
#FFFFFF3.421.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#988721
Deuteranopia (green-blind)
#9E8E33
Tritanopia (blue-blind)
#AC7F77
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a2e;
/* rgb */ color: rgb(159, 138, 46);
/* oklch */ color: oklch(63.5% 0.112 96.0);
Tailwind
colors: {
  custom: {
    50: '#bfab6c',
    500: '#9f8a2e',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a2e;
$custom-light: #bfab6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a2e",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 46
  },
  "hsl": {
    "h": 48.85,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.63533,
    "c": 0.11207,
    "h": 96
  },
  "luminance": 0.25745
}

Semantic roles & 50–950 ramp

primary
#9F8A2E
secondary
#6B7BBE
accent
#65DE49
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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