#8C15E2#8C15E2

#8C15E2 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 52.3% C 0.264 H 303.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8C15E2
RGBrgb(140, 21, 226)
HSLhsl(275, 83%, 48%)
HSVhsv(275, 91%, 89%)
CMYKcmyk(38.1%, 90.7%, 0%, 11.4%)
CIE-LABlab(40.58, 75.67, -77.39)
CIE-LCHlch(40.58, 108.24, 314.35°)
OKLaboklab(52.33% 0.1445 -0.2212)
OKLCHoklch(52.33% 0.264 303.2)
XYZxyz(24.8076, 11.6027, 72.8694)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C15E2 #6BE215
analogous
#2515E2 #8C15E2 #E215D1
triadic
#8C15E2 #E28C15 #15E28C
tetradic
#8C15E2 #E22515 #6BE215 #15D1E2
square
#8C15E2 #E22515 #6BE215 #15D1E2
split-complementary
#8C15E2 #D1E215 #15E225
monochromatic
#470B72 #6910AA #8C15E2 #A846EE #C27EF3

Accessibility & contrast

On white

6.32
#8C15E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8C15E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C15E2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C15E2#FFFFFF#000000##FFFFFF
##8C15E21.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE7
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#795886
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c15e2;
/* rgb */ color: rgb(140, 21, 226);
/* oklch */ color: oklch(52.3% 0.264 303.2);
Tailwind
colors: {
  custom: {
    50: '#b66aec',
    500: '#8c15e2',
    950: '#000000',
  },
}
SCSS
$custom: #8c15e2;
$custom-light: #b66aec;
$custom-dark: #000000;
JSON
{
  "hex": "#8c15e2",
  "rgb": {
    "r": 140,
    "g": 21,
    "b": 226
  },
  "hsl": {
    "h": 274.829,
    "s": 82.996,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.26421,
    "h": 303.2
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#8C15E2
secondary
#A1DB78
accent
#F92E84
background
#FCF6FE
surface
#F8ECFD
border
#D1C7D5
text
#120816
muted
#817A84

Preview Lab

Preview with #8C15E2

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

Preview Lab → · Contrast checker → · Palette generator →

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