#9F8F1A#9F8F1A

#9F8F1A is a light, vivid yellow. Relative luminance 0.271; OKLCH L 64.5% C 0.127 H 100.8°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#9F8F1A
RGBrgb(159, 143, 26)
HSLhsl(53, 72%, 36%)
HSVhsv(53, 84%, 62%)
CMYKcmyk(0%, 10.1%, 83.6%, 37.6%)
CIE-LABlab(59.06, -6.15, 58.15)
CIE-LCHlch(59.06, 58.47, 96.04°)
OKLaboklab(64.5% -0.0239 0.1251)
OKLCHoklch(64.5% 0.127 100.8)
XYZxyz(24.3082, 27.0916, 4.9259)
Luminance0.2709 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8F1A #1A2A9F
analogous
#9F4D1A #9F8F1A #6D9F1A
triadic
#9F8F1A #1A9F8F #8F1A9F
tetradic
#9F8F1A #1A9F4D #1A2A9F #9F1A6D
square
#9F8F1A #1A9F4D #1A2A9F #9F1A6D
split-complementary
#9F8F1A #1A6D9F #4D1A9F
monochromatic
#363009 #6A6011 #9F8F1A #D4BE23 #E3D151

Accessibility & contrast

On white

3.27
#9F8F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#9F8F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8F1A
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8F1A#FFFFFF#000000##000000
##9F8F1A1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#9E8B00
Deuteranopia (green-blind)
#A29124
Tritanopia (blue-blind)
#AC847A
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9f8f1a;
/* rgb */ color: rgb(159, 143, 26);
/* oklch */ color: oklch(64.5% 0.127 100.8);
Tailwind
colors: {
  custom: {
    50: '#bfaf63',
    500: '#9f8f1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8f1a;
$custom-light: #bfaf63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8f1a",
  "rgb": {
    "r": 159,
    "g": 143,
    "b": 26
  },
  "hsl": {
    "h": 52.782,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64498,
    "c": 0.12733,
    "h": 100.8
  },
  "luminance": 0.2709
}

Semantic roles & 50–950 ramp

primary
#9F8F1A
secondary
#505EC5
accent
#4FEF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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