#8F871A#8F871A

#8F871A is a mid, vivid yellow. Relative luminance 0.232; OKLCH L 61.2% C 0.122 H 105.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8F871A
RGBrgb(143, 135, 26)
HSLhsl(56, 69%, 33%)
HSVhsv(56, 82%, 56%)
CMYKcmyk(0%, 5.6%, 81.8%, 43.9%)
CIE-LABlab(55.32, -9.14, 54.33)
CIE-LCHlch(55.32, 55.10, 99.55°)
OKLaboklab(61.17% -0.0315 0.1176)
OKLCHoklch(61.17% 0.122 105)
XYZxyz(20.1790, 23.2430, 4.4005)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F871A #1A228F
analogous
#8F4C1A #8F871A #5D8F1A
triadic
#8F871A #1A8F87 #871A8F
tetradic
#8F871A #1A8F4C #1A228F #8F1A5D
square
#8F871A #1A8F4C #1A228F #8F1A5D
split-complementary
#8F871A #1A5D8F #4C1A8F
monochromatic
#272507 #5B5611 #8F871A #C3B823 #DDD346

Accessibility & contrast

On white

3.72
#8F871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#8F871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F871A
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F871A#FFFFFF#000000##000000
##8F871A1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#968723
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8f871a;
/* rgb */ color: rgb(143, 135, 26);
/* oklch */ color: oklch(61.2% 0.122 105.0);
Tailwind
colors: {
  custom: {
    50: '#b3a962',
    500: '#8f871a',
    950: '#000000',
  },
}
SCSS
$custom: #8f871a;
$custom-light: #b3a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8f871a",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 55.897,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61172,
    "c": 0.12176,
    "h": 105
  },
  "luminance": 0.23242
}

Semantic roles & 50–950 ramp

primary
#8F871A
secondary
#464EBF
accent
#48EC3C
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #8F871A

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

Preview Lab → · Contrast checker → · Palette generator →

#8F871A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva