#9F8F2A#9F8F2A

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

Color values

HEX#9F8F2A
RGBrgb(159, 143, 42)
HSLhsl(52, 58%, 39%)
HSVhsv(52, 74%, 62%)
CMYKcmyk(0%, 10.1%, 73.6%, 37.6%)
CIE-LABlab(59.14, -5.52, 52.85)
CIE-LCHlch(59.14, 53.13, 95.96°)
OKLaboklab(64.59% -0.0206 0.1169)
OKLCHoklch(64.59% 0.119 100)
XYZxyz(24.5396, 27.1842, 6.1445)
Luminance0.2718 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F2A #2A3A9F
analogous
#9F552A #9F8F2A #759F2A
triadic
#9F8F2A #2A9F8F #8F2A9F
tetradic
#9F8F2A #2A9F55 #2A3A9F #9F2A75
square
#9F8F2A #2A9F55 #2A3A9F #9F2A75
split-complementary
#9F8F2A #2A759F #552A9F
monochromatic
#3E3810 #6F631D #9F8F2A #CBB73B #D8C96B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8F2A#FFFFFF#000000##000000
##9F8F2A1.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)
#9D8B19
Deuteranopia (green-blind)
#A19130
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f2a;
/* rgb */ color: rgb(159, 143, 42);
/* oklch */ color: oklch(64.6% 0.119 100.0);
Tailwind
colors: {
  custom: {
    50: '#bfaf6b',
    500: '#9f8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f2a;
$custom-light: #bfaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f2a",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 51.795,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.64593,
    "c": 0.11873,
    "h": 100
  },
  "luminance": 0.27183
}

Semantic roles & 50–950 ramp

primary
#9F8F2A
secondary
#6672BF
accent
#5CE146
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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