#8F38AC#8F38AC

#8F38AC is a mid, vivid purple. Relative luminance 0.116; OKLCH L 51.2% C 0.187 H 316.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8F38AC
RGBrgb(143, 56, 172)
HSLhsl(285, 51%, 45%)
HSVhsv(285, 67%, 67%)
CMYKcmyk(16.9%, 67.4%, 0%, 32.5%)
CIE-LABlab(40.65, 54.14, -45.81)
CIE-LCHlch(40.65, 70.92, 319.76°)
OKLaboklab(51.19% 0.1356 -0.1286)
OKLCHoklch(51.19% 0.187 316.5)
XYZxyz(20.1871, 11.6473, 40.2065)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F38AC #55AC38
analogous
#5538AC #8F38AC #AC388F
triadic
#8F38AC #AC8F38 #38AC8F
tetradic
#8F38AC #AC5538 #55AC38 #388FAC
square
#8F38AC #AC5538 #55AC38 #388FAC
split-complementary
#8F38AC #8FAC38 #38AC55
monochromatic
#421A50 #69297E #8F38AC #AD58C9 #C487D8

Accessibility & contrast

On white

6.31
#8F38AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8F38AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F38AC
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F38AC#FFFFFF#000000##FFFFFF
##8F38AC1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#3962A9
Tritanopia (blue-blind)
#8D4E6D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f38ac;
/* rgb */ color: rgb(143, 56, 172);
/* oklch */ color: oklch(51.2% 0.187 316.5);
Tailwind
colors: {
  custom: {
    50: '#b375c5',
    500: '#8f38ac',
    950: '#000000',
  },
}
SCSS
$custom: #8f38ac;
$custom-light: #b375c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f38ac",
  "rgb": {
    "r": 143,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 285,
    "s": 50.877,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.1869,
    "h": 316.5
  },
  "luminance": 0.11647
}

Semantic roles & 50–950 ramp

primary
#8F38AC
secondary
#8FC27E
accent
#DA4D71
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8F38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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