#9F8B2F#9F8B2F

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

Color values

HEX#9F8B2F
RGBrgb(159, 139, 47)
HSLhsl(49, 54%, 40%)
HSVhsv(49, 70%, 62%)
CMYKcmyk(0%, 12.6%, 70.4%, 37.6%)
CIE-LABlab(58.08, -3.07, 49.76)
CIE-LCHlch(58.08, 49.85, 93.53°)
OKLaboklab(63.76% -0.0131 0.1113)
OKLCHoklch(63.76% 0.112 96.7)
XYZxyz(24.0449, 26.0426, 6.4490)
Luminance0.2604 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B2F #2F439F
analogous
#9F532F #9F8B2F #7B9F2F
triadic
#9F8B2F #2F9F8B #8B2F9F
tetradic
#9F8B2F #2F9F53 #2F439F #9F2F7B
square
#9F8B2F #2F9F53 #2F439F #9F2F7B
split-complementary
#9F8B2F #2F7B9F #532F9F
monochromatic
#413813 #706221 #9F8B2F #C8B044 #D6C473

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8B2F#FFFFFF#000000##000000
##9F8B2F1.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)
#998822
Deuteranopia (green-blind)
#9E8E34
Tritanopia (blue-blind)
#AC8078
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9f8b2f;
/* rgb */ color: rgb(159, 139, 47);
/* oklch */ color: oklch(63.8% 0.112 96.7);
Tailwind
colors: {
  custom: {
    50: '#bfac6d',
    500: '#9f8b2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b2f;
$custom-light: #bfac6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b2f",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 47
  },
  "hsl": {
    "h": 49.286,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.63759,
    "c": 0.11211,
    "h": 96.7
  },
  "luminance": 0.26041
}

Semantic roles & 50–950 ramp

primary
#9F8B2F
secondary
#6D7BBD
accent
#64DE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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