#9F8A1A#9F8A1A

#9F8A1A is a light, vivid yellow. Relative luminance 0.256; OKLCH L 63.4% C 0.124 H 97.6°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#9F8A1A
RGBrgb(159, 138, 26)
HSLhsl(51, 72%, 36%)
HSVhsv(51, 84%, 62%)
CMYKcmyk(0%, 13.2%, 83.6%, 37.6%)
CIE-LABlab(57.68, -3.43, 56.97)
CIE-LCHlch(57.68, 57.07, 93.44°)
OKLaboklab(63.4% -0.0162 0.1225)
OKLCHoklch(63.4% 0.124 97.6)
XYZxyz(23.5743, 25.6238, 4.6813)
Luminance0.2562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8A1A #1A2F9F
analogous
#9F481A #9F8A1A #729F1A
triadic
#9F8A1A #1A9F8A #8A1A9F
tetradic
#9F8A1A #1A9F48 #1A2F9F #9F1A72
square
#9F8A1A #1A9F48 #1A2F9F #9F1A72
split-complementary
#9F8A1A #1A729F #481A9F
monochromatic
#362F09 #6A5C11 #9F8A1A #D4B823 #E3CC51

Accessibility & contrast

On white

3.43
#9F8A1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#9F8A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8A1A
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8A1A#FFFFFF#000000##000000
##9F8A1A1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#998700
Deuteranopia (green-blind)
#9E8E23
Tritanopia (blue-blind)
#AC7F76
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9f8a1a;
/* rgb */ color: rgb(159, 138, 26);
/* oklch */ color: oklch(63.4% 0.124 97.6);
Tailwind
colors: {
  custom: {
    50: '#c0ab63',
    500: '#9f8a1a',
    950: '#000000',
  },
}
SCSS
$custom: #9f8a1a;
$custom-light: #c0ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8a1a",
  "rgb": {
    "r": 159,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 50.526,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.63403,
    "c": 0.12357,
    "h": 97.6
  },
  "luminance": 0.25622
}

Semantic roles & 50–950 ramp

primary
#9F8A1A
secondary
#5062C5
accent
#56EF39
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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