#8F2EA8#8F2EA8

#8F2EA8 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.9% C 0.196 H 318.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8F2EA8
RGBrgb(143, 46, 168)
HSLhsl(288, 57%, 42%)
HSVhsv(288, 73%, 66%)
CMYKcmyk(14.9%, 72.6%, 0%, 34.1%)
CIE-LABlab(38.94, 57.45, -46.18)
CIE-LCHlch(38.94, 73.71, 321.21°)
OKLaboklab(49.89% 0.1466 -0.1296)
OKLCHoklch(49.89% 0.196 318.5)
XYZxyz(19.3716, 10.6217, 38.0680)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2EA8 #47A82E
analogous
#522EA8 #8F2EA8 #A82E84
triadic
#8F2EA8 #A88F2E #2EA88F
tetradic
#8F2EA8 #A8522E #47A82E #2E84A8
square
#8F2EA8 #A8522E #47A82E #2E84A8
split-complementary
#8F2EA8 #84A82E #2EA852
monochromatic
#3D1448 #662178 #8F2EA8 #B147CD #C577DA

Accessibility & contrast

On white

6.72
#8F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8F2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2EA8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2EA8#FFFFFF#000000##FFFFFF
##8F2EA81.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#355FA5
Tritanopia (blue-blind)
#8F4668
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8f2ea8;
/* rgb */ color: rgb(143, 46, 168);
/* oklch */ color: oklch(49.9% 0.196 318.5);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ea8;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ea8",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 287.705,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49887,
    "c": 0.19567,
    "h": 318.5
  },
  "luminance": 0.10621
}

Semantic roles & 50–950 ramp

primary
#8F2EA8
secondary
#81C270
accent
#E04867
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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