#9F8B2A#9F8B2A

#9F8B2A is a light, moderate yellow. Relative luminance 0.260; OKLCH L 63.7% C 0.116 H 97.2°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#9F8B2A
RGBrgb(159, 139, 42)
HSLhsl(50, 58%, 39%)
HSVhsv(50, 74%, 62%)
CMYKcmyk(0%, 12.6%, 73.6%, 37.6%)
CIE-LABlab(58.04, -3.33, 51.77)
CIE-LCHlch(58.04, 51.88, 93.69°)
OKLaboklab(63.72% -0.0144 0.1147)
OKLCHoklch(63.72% 0.116 97.2)
XYZxyz(23.9498, 26.0046, 5.9479)
Luminance0.2600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B2A #2A3E9F
analogous
#9F512A #9F8B2A #789F2A
triadic
#9F8B2A #2A9F8B #8B2A9F
tetradic
#9F8B2A #2A9F51 #2A3E9F #9F2A78
square
#9F8B2A #2A9F51 #2A3E9F #9F2A78
split-complementary
#9F8B2A #2A789F #512A9F
monochromatic
#3E3610 #6F611D #9F8B2A #CBB33B #D8C56B

Accessibility & contrast

On white

3.39
#9F8B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#9F8B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B2A
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B2A#FFFFFF#000000##000000
##9F8B2A1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#99881A
Deuteranopia (green-blind)
#9E8E30
Tritanopia (blue-blind)
#AC8078
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b2a;
/* rgb */ color: rgb(159, 139, 42);
/* oklch */ color: oklch(63.7% 0.116 97.2);
Tailwind
colors: {
  custom: {
    50: '#bfac6a',
    500: '#9f8b2a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b2a;
$custom-light: #bfac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b2a",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 42
  },
  "hsl": {
    "h": 49.744,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.63719,
    "c": 0.11556,
    "h": 97.2
  },
  "luminance": 0.26003
}

Semantic roles & 50–950 ramp

primary
#9F8B2A
secondary
#6675BF
accent
#61E146
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131007
muted
#827F7A

Preview Lab

Preview with #9F8B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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