#8B15E2#8B15E2

#8B15E2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 52.2% C 0.264 H 302.8°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8B15E2
RGBrgb(139, 21, 226)
HSLhsl(275, 83%, 48%)
HSVhsv(275, 91%, 89%)
CMYKcmyk(38.5%, 90.7%, 0%, 11.4%)
CIE-LABlab(40.44, 75.55, -77.63)
CIE-LCHlch(40.44, 108.33, 314.22°)
OKLaboklab(52.2% 0.1431 -0.2219)
OKLCHoklch(52.2% 0.264 302.8)
XYZxyz(24.6398, 11.5162, 72.8615)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B15E2 #6CE215
analogous
#2515E2 #8B15E2 #E215D2
triadic
#8B15E2 #E28B15 #15E28B
tetradic
#8B15E2 #E22515 #6CE215 #15D2E2
square
#8B15E2 #E22515 #6CE215 #15D2E2
split-complementary
#8B15E2 #D2E215 #15E225
monochromatic
#460B72 #6910AA #8B15E2 #A746EE #C27EF3

Accessibility & contrast

On white

6.36
#8B15E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8B15E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B15E2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B15E2#FFFFFF#000000##FFFFFF
##8B15E21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE7
Deuteranopia (green-blind)
#005FDE
Tritanopia (blue-blind)
#785986
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b15e2;
/* rgb */ color: rgb(139, 21, 226);
/* oklch */ color: oklch(52.2% 0.264 302.8);
Tailwind
colors: {
  custom: {
    50: '#b56aec',
    500: '#8b15e2',
    950: '#000000',
  },
}
SCSS
$custom: #8b15e2;
$custom-light: #b56aec;
$custom-dark: #000000;
JSON
{
  "hex": "#8b15e2",
  "rgb": {
    "r": 139,
    "g": 21,
    "b": 226
  },
  "hsl": {
    "h": 274.537,
    "s": 82.996,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52202,
    "c": 0.26404,
    "h": 302.8
  },
  "luminance": 0.11516
}

Semantic roles & 50–950 ramp

primary
#8B15E2
secondary
#A2DB78
accent
#F92E85
background
#FBF6FE
surface
#F7ECFD
border
#D0C7D5
text
#120816
muted
#817A84

Preview Lab

Preview with #8B15E2

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

Preview Lab → · Contrast checker → · Palette generator →

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