#8F2EC2#8F2EC2

#8F2EC2 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.7% C 0.219 H 310.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#8F2EC2
RGBrgb(143, 46, 194)
HSLhsl(279, 62%, 47%)
HSVhsv(279, 76%, 76%)
CMYKcmyk(26.3%, 76.3%, 0%, 23.9%)
CIE-LABlab(40.72, 62.71, -58.67)
CIE-LCHlch(40.72, 85.87, 316.91°)
OKLaboklab(51.71% 0.1429 -0.1663)
OKLCHoklch(51.71% 0.219 310.7)
XYZxyz(22.0404, 11.6892, 52.1237)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2EC2 #61C22E
analogous
#452EC2 #8F2EC2 #C22EAB
triadic
#8F2EC2 #C28F2E #2EC28F
tetradic
#8F2EC2 #C2452E #61C22E #2EABC2
square
#8F2EC2 #C2452E #61C22E #2EABC2
split-complementary
#8F2EC2 #ABC22E #2EC245
monochromatic
#46175F #6B2291 #8F2EC2 #AB56D7 #C388E3

Accessibility & contrast

On white

6.29
#8F2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8F2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2EC2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2EC2#FFFFFF#000000##FFFFFF
##8F2EC21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC6
Deuteranopia (green-blind)
#0562BF
Tritanopia (blue-blind)
#885277
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8f2ec2;
/* rgb */ color: rgb(143, 46, 194);
/* oklch */ color: oklch(51.7% 0.219 310.7);
Tailwind
colors: {
  custom: {
    50: '#b571d5',
    500: '#8f2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8f2ec2;
$custom-light: #b571d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2ec2",
  "rgb": {
    "r": 143,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 279.324,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51714,
    "c": 0.21926,
    "h": 310.7
  },
  "luminance": 0.11689
}

Semantic roles & 50–950 ramp

primary
#8F2EC2
secondary
#9ACC7F
accent
#E5437B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8F2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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