#9F8B1A#9F8B1A

#9F8B1A is a light, vivid yellow. Relative luminance 0.259; OKLCH L 63.6% C 0.124 H 98.2°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9F8B1A
RGBrgb(159, 139, 26)
HSLhsl(51, 72%, 36%)
HSVhsv(51, 84%, 62%)
CMYKcmyk(0%, 12.6%, 83.6%, 37.6%)
CIE-LABlab(57.95, -3.98, 57.20)
CIE-LCHlch(57.95, 57.34, 93.98°)
OKLaboklab(63.62% -0.0178 0.123)
OKLCHoklch(63.62% 0.124 98.2)
XYZxyz(23.7184, 25.9120, 4.7293)
Luminance0.2591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8B1A #1A2E9F
analogous
#9F481A #9F8B1A #719F1A
triadic
#9F8B1A #1A9F8B #8B1A9F
tetradic
#9F8B1A #1A9F48 #1A2E9F #9F1A71
square
#9F8B1A #1A9F48 #1A2E9F #9F1A71
split-complementary
#9F8B1A #1A719F #481A9F
monochromatic
#362F09 #6A5D11 #9F8B1A #D4B923 #E3CD51

Accessibility & contrast

On white

3.40
#9F8B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#9F8B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8B1A
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8B1A#FFFFFF#000000##000000
##9F8B1A1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8700
Deuteranopia (green-blind)
#9F8E23
Tritanopia (blue-blind)
#AC8077
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8b1a;
/* rgb */ color: rgb(159, 139, 26);
/* oklch */ color: oklch(63.6% 0.124 98.2);
Tailwind
colors: {
  custom: {
    50: '#c0ac63',
    500: '#9f8b1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8b1a;
$custom-light: #c0ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8b1a",
  "rgb": {
    "r": 159,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 50.977,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63621,
    "c": 0.12429,
    "h": 98.2
  },
  "luminance": 0.25911
}

Semantic roles & 50–950 ramp

primary
#9F8B1A
secondary
#5061C5
accent
#54EF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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