#9F8F2F#9F8F2F

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

Color values

HEX#9F8F2F
RGBrgb(159, 143, 47)
HSLhsl(51, 54%, 40%)
HSVhsv(51, 70%, 62%)
CMYKcmyk(0%, 10.1%, 70.4%, 37.6%)
CIE-LABlab(59.18, -5.26, 50.88)
CIE-LCHlch(59.18, 51.15, 95.90°)
OKLaboklab(64.63% -0.0193 0.1137)
OKLCHoklch(64.63% 0.115 99.6)
XYZxyz(24.6347, 27.2222, 6.6456)
Luminance0.2722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F2F #2F3F9F
analogous
#9F572F #9F8F2F #779F2F
triadic
#9F8F2F #2F9F8F #8F2F9F
tetradic
#9F8F2F #2F9F57 #2F3F9F #9F2F77
square
#9F8F2F #2F9F57 #2F3F9F #9F2F77
split-complementary
#9F8F2F #2F779F #572F9F
monochromatic
#413A13 #706521 #9F8F2F #C8B544 #D6C773

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8F2F#FFFFFF#000000##000000
##9F8F2F1.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)
#9D8B21
Deuteranopia (green-blind)
#A19135
Tritanopia (blue-blind)
#AB857C
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f2f;
/* rgb */ color: rgb(159, 143, 47);
/* oklch */ color: oklch(64.6% 0.115 99.6);
Tailwind
colors: {
  custom: {
    50: '#bfaf6d',
    500: '#9f8f2f',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f2f;
$custom-light: #bfaf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f2f",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 47
  },
  "hsl": {
    "h": 51.429,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.64632,
    "c": 0.11533,
    "h": 99.6
  },
  "luminance": 0.27221
}

Semantic roles & 50–950 ramp

primary
#9F8F2F
secondary
#6D78BD
accent
#5FDE4A
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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