#8F3EC2#8F3EC2

#8F3EC2 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.201 H 309.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8F3EC2
RGBrgb(143, 62, 194)
HSLhsl(277, 52%, 50%)
HSVhsv(277, 68%, 76%)
CMYKcmyk(26.3%, 68%, 0%, 23.9%)
CIE-LABlab(43.03, 56.15, -54.92)
CIE-LCHlch(43.03, 78.55, 315.64°)
OKLaboklab(53.36% 0.1273 -0.1554)
OKLCHoklch(53.36% 0.201 309.3)
XYZxyz(22.7860, 13.1804, 52.3722)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F3EC2 #71C23E
analogous
#4D3EC2 #8F3EC2 #C23EB3
triadic
#8F3EC2 #C28F3E #3EC28F
tetradic
#8F3EC2 #C24D3E #71C23E #3EB3C2
square
#8F3EC2 #C24D3E #71C23E #3EB3C2
split-complementary
#8F3EC2 #B3C23E #3EC24D
monochromatic
#4B2066 #6D2F94 #8F3EC2 #AA6DD1 #C59BDF

Accessibility & contrast

On white

5.78
#8F3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8F3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F3EC2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F3EC2#FFFFFF#000000##FFFFFF
##8F3EC21.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#2667BF
Tritanopia (blue-blind)
#885A7B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f3ec2;
/* rgb */ color: rgb(143, 62, 194);
/* oklch */ color: oklch(53.4% 0.201 309.3);
Tailwind
colors: {
  custom: {
    50: '#b479d5',
    500: '#8f3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8f3ec2;
$custom-light: #b479d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f3ec2",
  "rgb": {
    "r": 143,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 276.818,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53358,
    "c": 0.20082,
    "h": 309.3
  },
  "luminance": 0.1318
}

Semantic roles & 50–950 ramp

primary
#8F3EC2
secondary
#A7CB90
accent
#DB4C84
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8F3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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