#8F4EA2#8F4EA2

#8F4EA2 is a mid, vivid purple. Relative luminance 0.139; OKLCH L 53.5% C 0.143 H 318.2°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8F4EA2
RGBrgb(143, 78, 162)
HSLhsl(286, 35%, 47%)
HSVhsv(286, 52%, 64%)
CMYKcmyk(11.7%, 51.9%, 0%, 36.5%)
CIE-LABlab(44.09, 41.22, -34.41)
CIE-LCHlch(44.09, 53.69, 320.14°)
OKLaboklab(53.52% 0.1068 -0.0955)
OKLCHoklch(53.52% 0.143 318.2)
XYZxyz(20.5728, 13.8978, 35.7743)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F4EA2 #61A24E
analogous
#654EA2 #8F4EA2 #A24E8B
triadic
#8F4EA2 #A28F4E #4EA28F
tetradic
#8F4EA2 #A2654E #61A24E #4E8BA2
square
#8F4EA2 #A2654E #61A24E #4E8BA2
split-complementary
#8F4EA2 #8BA24E #4EA265
monochromatic
#46264F #6B3A79 #8F4EA2 #AB72BB #C39BCF

Accessibility & contrast

On white

5.56
#8F4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8F4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F4EA2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F4EA2#FFFFFF#000000##FFFFFF
##8F4EA21.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E64A5
Deuteranopia (green-blind)
#526AA0
Tritanopia (blue-blind)
#8F5A71
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f4ea2;
/* rgb */ color: rgb(143, 78, 162);
/* oklch */ color: oklch(53.5% 0.143 318.2);
Tailwind
colors: {
  custom: {
    50: '#b282be',
    500: '#8f4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8f4ea2;
$custom-light: #b282be;
$custom-dark: #000000;
JSON
{
  "hex": "#8f4ea2",
  "rgb": {
    "r": 143,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 286.429,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.53516,
    "c": 0.14326,
    "h": 318.2
  },
  "luminance": 0.13897
}

Semantic roles & 50–950 ramp

primary
#8F4EA2
secondary
#9ABC90
accent
#CB5D76
background
#FBF8FB
surface
#F6EFF7
border
#D0CAD0
text
#110B12
muted
#807C81

Preview Lab

Preview with #8F4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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