#9F9A1A#9F9A1A

#9F9A1A is a light, vivid yellow. Relative luminance 0.306; OKLCH L 66.9% C 0.137 H 107.1°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#9F9A1A
RGBrgb(159, 154, 26)
HSLhsl(58, 72%, 36%)
HSVhsv(58, 84%, 62%)
CMYKcmyk(0%, 3.1%, 83.6%, 37.6%)
CIE-LABlab(62.13, -12.03, 60.76)
CIE-LCHlch(62.13, 61.94, 101.20°)
OKLaboklab(66.94% -0.0403 0.1308)
OKLCHoklch(66.94% 0.137 107.1)
XYZxyz(26.0412, 30.5577, 5.5036)
Luminance0.3056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F9A1A #1A1F9F
analogous
#9F581A #9F9A1A #629F1A
triadic
#9F9A1A #1A9F9A #9A1A9F
tetradic
#9F9A1A #1A9F58 #1A1F9F #9F1A62
square
#9F9A1A #1A9F58 #1A1F9F #9F1A62
split-complementary
#9F9A1A #1A629F #581A9F
monochromatic
#363409 #6A6711 #9F9A1A #D4CD23 #E3DD51

Accessibility & contrast

On white

2.95
#9F9A1A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#9F9A1A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9F9A1A
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F9A1A#FFFFFF#000000##000000
##9F9A1A1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#A89400
Deuteranopia (green-blind)
#AA9826
Tritanopia (blue-blind)
#AB8F83
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9f9a1a;
/* rgb */ color: rgb(159, 154, 26);
/* oklch */ color: oklch(66.9% 0.137 107.1);
Tailwind
colors: {
  custom: {
    50: '#bfb765',
    500: '#9f9a1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f9a1a;
$custom-light: #bfb765;
$custom-dark: #000000;
JSON
{
  "hex": "#9f9a1a",
  "rgb": {
    "r": 159,
    "g": 154,
    "b": 26
  },
  "hsl": {
    "h": 57.744,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.66944,
    "c": 0.13684,
    "h": 107.1
  },
  "luminance": 0.30557
}

Semantic roles & 50–950 ramp

primary
#9F9A1A
secondary
#5054C5
accent
#40EF39
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131106
muted
#82807A

Preview Lab

Preview with #9F9A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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