#8F2EC6#8F2EC6

#8F2EC6 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.223 H 309.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8F2EC6
RGBrgb(143, 46, 198)
HSLhsl(278, 62%, 48%)
HSVhsv(278, 77%, 78%)
CMYKcmyk(27.8%, 76.8%, 0%, 22.4%)
CIE-LABlab(41.01, 63.55, -60.52)
CIE-LCHlch(41.01, 87.76, 316.40°)
OKLaboklab(52.01% 0.1421 -0.1717)
OKLCHoklch(52.01% 0.223 309.6)
XYZxyz(22.4957, 11.8713, 54.5215)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2EC6 #65C62E
analogous
#432EC6 #8F2EC6 #C62EB1
triadic
#8F2EC6 #C68F2E #2EC68F
tetradic
#8F2EC6 #C6432E #65C62E #2EB1C6
square
#8F2EC6 #C6432E #65C62E #2EB1C6
split-complementary
#8F2EC6 #B1C62E #2EC643
monochromatic
#471763 #6B2294 #8F2EC6 #AA59D8 #C48AE4

Accessibility & contrast

On white

6.22
#8F2EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8F2EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2EC6
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2EC6#FFFFFF#000000##FFFFFF
##8F2EC61.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#875379
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8f2ec6;
/* rgb */ color: rgb(143, 46, 198);
/* oklch */ color: oklch(52.0% 0.223 309.6);
Tailwind
colors: {
  custom: {
    50: '#b571d8',
    500: '#8f2ec6',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ec6;
$custom-light: #b571d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ec6",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 198
  },
  "hsl": {
    "h": 278.289,
    "s": 62.295,
    "l": 47.843
  },
  "oklch": {
    "l": 0.52012,
    "c": 0.22292,
    "h": 309.6
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#8F2EC6
secondary
#9DCE82
accent
#E5427D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120815
muted
#817B83

Preview Lab

Preview with #8F2EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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