#8F871B#8F871B

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

Color values

HEX#8F871B
RGBrgb(143, 135, 27)
HSLhsl(56, 68%, 33%)
HSVhsv(56, 81%, 56%)
CMYKcmyk(0%, 5.6%, 81.1%, 43.9%)
CIE-LABlab(55.33, -9.11, 54.03)
CIE-LCHlch(55.33, 54.79, 99.57°)
OKLaboklab(61.18% -0.0313 0.1172)
OKLCHoklch(61.18% 0.121 105)
XYZxyz(20.1904, 23.2475, 4.4604)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F871B #1B238F
analogous
#8F4D1B #8F871B #5D8F1B
triadic
#8F871B #1B8F87 #871B8F
tetradic
#8F871B #1B8F4D #1B238F #8F1B5D
square
#8F871B #1B8F4D #1B238F #8F1B5D
split-complementary
#8F871B #1B5D8F #4D1B8F
monochromatic
#282608 #5C5611 #8F871B #C2B825 #DCD248

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8F871B#FFFFFF#000000##000000
##8F871B1.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)
#968724
Tritanopia (blue-blind)
#9A7D73
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #8f871b;
/* rgb */ color: rgb(143, 135, 27);
/* oklch */ color: oklch(61.2% 0.121 105.0);
Tailwind
colors: {
  custom: {
    50: '#b3a962',
    500: '#8f871b',
    950: '#000000',
  },
}
SCSS
$custom: #8f871b;
$custom-light: #b3a962;
$custom-dark: #000000;
JSON
{
  "hex": "#8f871b",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 55.862,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61177,
    "c": 0.12128,
    "h": 105
  },
  "luminance": 0.23247
}

Semantic roles & 50–950 ramp

primary
#8F871B
secondary
#4850BE
accent
#49EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #8F871B

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

Preview Lab → · Contrast checker → · Palette generator →

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