#8F2CA8#8F2CA8

#8F2CA8 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.198 H 318.6°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#8F2CA8
RGBrgb(143, 44, 168)
HSLhsl(288, 58%, 42%)
HSVhsv(288, 74%, 66%)
CMYKcmyk(14.9%, 73.8%, 0%, 34.1%)
CIE-LABlab(38.67, 58.21, -46.60)
CIE-LCHlch(38.67, 74.56, 321.32°)
OKLaboklab(49.7% 0.1485 -0.1308)
OKLCHoklch(49.7% 0.198 318.6)
XYZxyz(19.2953, 10.4691, 38.0426)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2CA8 #45A82C
analogous
#512CA8 #8F2CA8 #A82C83
triadic
#8F2CA8 #A88F2C #2CA88F
tetradic
#8F2CA8 #A8512C #45A82C #2C83A8
square
#8F2CA8 #A8512C #45A82C #2C83A8
split-complementary
#8F2CA8 #83A82C #2CA851
monochromatic
#3C1347 #661F78 #8F2CA8 #B243CE #C674DB

Accessibility & contrast

On white

6.79
#8F2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8F2CA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2CA8
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2CA8#FFFFFF#000000##FFFFFF
##8F2CA81.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#335EA5
Tritanopia (blue-blind)
#8F4568
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8f2ca8;
/* rgb */ color: rgb(143, 44, 168);
/* oklch */ color: oklch(49.7% 0.198 318.6);
Tailwind
colors: {
  custom: {
    50: '#b46fc2',
    500: '#8f2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ca8;
$custom-light: #b46fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ca8",
  "rgb": {
    "r": 143,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 287.903,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49698,
    "c": 0.19795,
    "h": 318.6
  },
  "luminance": 0.10468
}

Semantic roles & 50–950 ramp

primary
#8F2CA8
secondary
#7FC26E
accent
#E24665
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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