#8F871C#8F871C

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

Color values

HEX#8F871C
RGBrgb(143, 135, 28)
HSLhsl(56, 67%, 34%)
HSVhsv(56, 80%, 56%)
CMYKcmyk(0%, 5.6%, 80.4%, 43.9%)
CIE-LABlab(55.33, -9.07, 53.72)
CIE-LCHlch(55.33, 54.48, 99.58°)
OKLaboklab(61.18% -0.0311 0.1167)
OKLCHoklch(61.18% 0.121 104.9)
XYZxyz(20.2022, 23.2522, 4.5224)
Luminance0.2325 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F871C #1C248F
analogous
#8F4D1C #8F871C #5D8F1C
triadic
#8F871C #1C8F87 #871C8F
tetradic
#8F871C #1C8F4D #1C248F #8F1C5D
square
#8F871C #1C8F4D #1C248F #8F1C5D
split-complementary
#8F871C #1C5D8F #4D1C8F
monochromatic
#292608 #5C5712 #8F871C #C2B726 #DCD14A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #8f871c;
/* rgb */ color: rgb(143, 135, 28);
/* oklch */ color: oklch(61.2% 0.121 104.9);
Tailwind
colors: {
  custom: {
    50: '#b3a963',
    500: '#8f871c',
    950: '#000000',
  },
}
SCSS
$custom: #8f871c;
$custom-light: #b3a963;
$custom-dark: #000000;
JSON
{
  "hex": "#8f871c",
  "rgb": {
    "r": 143,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 55.826,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61182,
    "c": 0.12077,
    "h": 104.9
  },
  "luminance": 0.23251
}

Semantic roles & 50–950 ramp

primary
#8F871C
secondary
#4951BE
accent
#4AEA3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#120F06
muted
#817F7A

Preview Lab

Preview with #8F871C

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

Preview Lab → · Contrast checker → · Palette generator →

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