#9F8D1A#9F8D1A

#9F8D1A is a light, vivid yellow. Relative luminance 0.265; OKLCH L 64.1% C 0.126 H 99.5°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#9F8D1A
RGBrgb(159, 141, 26)
HSLhsl(52, 72%, 36%)
HSVhsv(52, 84%, 62%)
CMYKcmyk(0%, 11.3%, 83.6%, 37.6%)
CIE-LABlab(58.51, -5.07, 57.67)
CIE-LCHlch(58.51, 57.90, 95.02°)
OKLaboklab(64.06% -0.0208 0.124)
OKLCHoklch(64.06% 0.126 99.5)
XYZxyz(24.0107, 26.4965, 4.8267)
Luminance0.2650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8D1A #1A2C9F
analogous
#9F4B1A #9F8D1A #6F9F1A
triadic
#9F8D1A #1A9F8D #8D1A9F
tetradic
#9F8D1A #1A9F4B #1A2C9F #9F1A6F
square
#9F8D1A #1A9F4B #1A2C9F #9F1A6F
split-complementary
#9F8D1A #1A6F9F #4B1A9F
monochromatic
#363009 #6A5E11 #9F8D1A #D4BC23 #E3CF51

Accessibility & contrast

On white

3.33
#9F8D1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#9F8D1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8D1A
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8D1A#FFFFFF#000000##000000
##9F8D1A1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#A18F24
Tritanopia (blue-blind)
#AC8278
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8d1a;
/* rgb */ color: rgb(159, 141, 26);
/* oklch */ color: oklch(64.1% 0.126 99.5);
Tailwind
colors: {
  custom: {
    50: '#c0ad63',
    500: '#9f8d1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8d1a;
$custom-light: #c0ad63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8d1a",
  "rgb": {
    "r": 159,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 51.88,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64058,
    "c": 0.12578,
    "h": 99.5
  },
  "luminance": 0.26495
}

Semantic roles & 50–950 ramp

primary
#9F8D1A
secondary
#5060C5
accent
#52EF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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