#9F871C#9F871C

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

Color values

HEX#9F871C
RGBrgb(159, 135, 28)
HSLhsl(49, 70%, 37%)
HSVhsv(49, 82%, 62%)
CMYKcmyk(0%, 15.1%, 82.4%, 37.6%)
CIE-LABlab(56.86, -1.71, 55.66)
CIE-LCHlch(56.86, 55.69, 91.76°)
OKLaboklab(62.76% -0.0112 0.1201)
OKLCHoklch(62.76% 0.121 95.3)
XYZxyz(23.1730, 24.7841, 4.6616)
Luminance0.2478 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F871C #1C349F
analogous
#9F461C #9F871C #769F1C
triadic
#9F871C #1C9F87 #871C9F
tetradic
#9F871C #1C9F46 #1C349F #9F1C76
square
#9F871C #1C9F46 #1C349F #9F1C76
split-complementary
#9F871C #1C769F #461C9F
monochromatic
#372F0A #6B5B13 #9F871C #D3B325 #E1C754

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F871C#FFFFFF#000000##000000
##9F871C1.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)
#9C8C24
Tritanopia (blue-blind)
#AC7C73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f871c;
/* rgb */ color: rgb(159, 135, 28);
/* oklch */ color: oklch(62.8% 0.121 95.3);
Tailwind
colors: {
  custom: {
    50: '#c0a963',
    500: '#9f871c',
    950: '#000000',
  },
}
SCSS
$custom: #9f871c;
$custom-light: #c0a963;
$custom-dark: #000000;
JSON
{
  "hex": "#9f871c",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 49.008,
    "s": 70.053,
    "l": 36.667
  },
  "oklch": {
    "l": 0.62761,
    "c": 0.1206,
    "h": 95.3
  },
  "luminance": 0.24783
}

Semantic roles & 50–950 ramp

primary
#9F871C
secondary
#5367C4
accent
#5CED3B
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F871C

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

Preview Lab → · Contrast checker → · Palette generator →

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