#9F8E1A#9F8E1A

#9F8E1A is a light, vivid yellow. Relative luminance 0.268; OKLCH L 64.3% C 0.127 H 100.2°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#9F8E1A
RGBrgb(159, 142, 26)
HSLhsl(52, 72%, 36%)
HSVhsv(52, 84%, 62%)
CMYKcmyk(0%, 10.7%, 83.6%, 37.6%)
CIE-LABlab(58.78, -5.61, 57.91)
CIE-LCHlch(58.78, 58.18, 95.53°)
OKLaboklab(64.28% -0.0224 0.1246)
OKLCHoklch(64.28% 0.127 100.2)
XYZxyz(24.1588, 26.7927, 4.8761)
Luminance0.2679 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8E1A #1A2B9F
analogous
#9F4C1A #9F8E1A #6E9F1A
triadic
#9F8E1A #1A9F8E #8E1A9F
tetradic
#9F8E1A #1A9F4C #1A2B9F #9F1A6E
square
#9F8E1A #1A9F4C #1A2B9F #9F1A6E
split-complementary
#9F8E1A #1A6E9F #4C1A9F
monochromatic
#363009 #6A5F11 #9F8E1A #D4BD23 #E3D051

Accessibility & contrast

On white

3.30
#9F8E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#9F8E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8E1A
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8E1A#FFFFFF#000000##000000
##9F8E1A1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9D8A00
Deuteranopia (green-blind)
#A19024
Tritanopia (blue-blind)
#AC8379
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #9f8e1a;
/* rgb */ color: rgb(159, 142, 26);
/* oklch */ color: oklch(64.3% 0.127 100.2);
Tailwind
colors: {
  custom: {
    50: '#bfae63',
    500: '#9f8e1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8e1a;
$custom-light: #bfae63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8e1a",
  "rgb": {
    "r": 159,
    "g": 142,
    "b": 26
  },
  "hsl": {
    "h": 52.331,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.64278,
    "c": 0.12654,
    "h": 100.2
  },
  "luminance": 0.26792
}

Semantic roles & 50–950 ramp

primary
#9F8E1A
secondary
#505FC5
accent
#50EF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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