#9F8F2B#9F8F2B

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

Color values

HEX#9F8F2B
RGBrgb(159, 143, 43)
HSLhsl(52, 57%, 40%)
HSVhsv(52, 73%, 62%)
CMYKcmyk(0%, 10.1%, 73%, 37.6%)
CIE-LABlab(59.15, -5.47, 52.46)
CIE-LCHlch(59.15, 52.75, 95.95°)
OKLaboklab(64.6% -0.0204 0.1163)
OKLCHoklch(64.6% 0.118 99.9)
XYZxyz(24.5577, 27.1914, 6.2400)
Luminance0.2719 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F2B #2B3B9F
analogous
#9F552B #9F8F2B #759F2B
triadic
#9F8F2B #2B9F8F #8F2B9F
tetradic
#9F8F2B #2B9F55 #2B3B9F #9F2B75
square
#9F8F2B #2B9F55 #2B3B9F #9F2B75
split-complementary
#9F8F2B #2B759F #552B9F
monochromatic
#3F3811 #6F641E #9F8F2B #CAB73D #D7C96D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8F2B#FFFFFF#000000##000000
##9F8F2B1.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)
#9D8B1B
Deuteranopia (green-blind)
#A19131
Tritanopia (blue-blind)
#AC847B
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f2b;
/* rgb */ color: rgb(159, 143, 43);
/* oklch */ color: oklch(64.6% 0.118 99.9);
Tailwind
colors: {
  custom: {
    50: '#bfaf6b',
    500: '#9f8f2b',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f2b;
$custom-light: #bfaf6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f2b",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 43
  },
  "hsl": {
    "h": 51.724,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.646,
    "c": 0.11808,
    "h": 99.9
  },
  "luminance": 0.2719
}

Semantic roles & 50–950 ramp

primary
#9F8F2B
secondary
#6773BE
accent
#5CE147
background
#FCFAF6
surface
#F8F4EC
border
#D1CEC7
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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