#9F871B#9F871B

#9F871B is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.8% C 0.121 H 95.4°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9F871B
RGBrgb(159, 135, 27)
HSLhsl(49, 71%, 36%)
HSVhsv(49, 83%, 62%)
CMYKcmyk(0%, 15.1%, 83%, 37.6%)
CIE-LABlab(56.86, -1.75, 55.97)
CIE-LCHlch(56.86, 55.99, 91.79°)
OKLaboklab(62.76% -0.0114 0.1205)
OKLCHoklch(62.76% 0.121 95.4)
XYZxyz(23.1612, 24.7793, 4.5997)
Luminance0.2478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F871B #1B339F
analogous
#9F451B #9F871B #759F1B
triadic
#9F871B #1B9F87 #871B9F
tetradic
#9F871B #1B9F45 #1B339F #9F1B75
square
#9F871B #1B9F45 #1B339F #9F1B75
split-complementary
#9F871B #1B759F #451B9F
monochromatic
#362E09 #6B5B12 #9F871B #D3B324 #E2C853

Accessibility & contrast

On white

3.53
#9F871B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#9F871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F871B
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F871B#FFFFFF#000000##000000
##9F871B1.003.535.965.96
#FFFFFF3.531.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#9C8C23
Tritanopia (blue-blind)
#AC7C73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f871b;
/* rgb */ color: rgb(159, 135, 27);
/* oklch */ color: oklch(62.8% 0.121 95.4);
Tailwind
colors: {
  custom: {
    50: '#c0a963',
    500: '#9f871b',
    950: '#000000',
  },
}
SCSS
$custom: #9f871b;
$custom-light: #c0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#9f871b",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 49.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.62756,
    "c": 0.12107,
    "h": 95.4
  },
  "luminance": 0.24778
}

Semantic roles & 50–950 ramp

primary
#9F871B
secondary
#5166C5
accent
#5BEE3A
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F871B

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

Preview Lab → · Contrast checker → · Palette generator →

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