#8152D5#8152D5

#8152D5 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.192 H 296.1°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8152D5
RGBrgb(129, 82, 213)
HSLhsl(262, 61%, 58%)
HSVhsv(262, 62%, 84%)
CMYKcmyk(39.4%, 61.5%, 0%, 16.5%)
CIE-LABlab(46.32, 47.76, -60.66)
CIE-LCHlch(46.32, 77.21, 308.21°)
OKLaboklab(55.77% 0.0846 -0.1728)
OKLCHoklch(55.77% 0.192 296.1)
XYZxyz(24.0777, 15.5053, 64.6622)
Luminance0.1551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152D5 #A6D552
analogous
#5264D5 #8152D5 #C352D5
triadic
#8152D5 #D58152 #52D581
tetradic
#8152D5 #D55264 #A6D552 #52D5C3
square
#8152D5 #D55264 #A6D552 #52D5C3
split-complementary
#8152D5 #D5C352 #64D552
monochromatic
#47228B #612EBC #8152D5 #A583E1 #C9B4ED

Accessibility & contrast

On white

5.12
#8152D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8152D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152D5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152D5#FFFFFF#000000##FFFFFF
##8152D51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#056CD2
Tritanopia (blue-blind)
#6C6F8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8152d5;
/* rgb */ color: rgb(129, 82, 213);
/* oklch */ color: oklch(55.8% 0.192 296.1);
Tailwind
colors: {
  custom: {
    50: '#ab85e3',
    500: '#8152d5',
    950: '#000000',
  },
}
SCSS
$custom: #8152d5;
$custom-light: #ab85e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8152d5",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 261.527,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55769,
    "c": 0.19238,
    "h": 296.1
  },
  "luminance": 0.15506
}

Semantic roles & 50–950 ramp

primary
#8152D5
secondary
#C9DCA7
accent
#E444AB
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8152D5

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

Preview Lab → · Contrast checker → · Palette generator →

#8152D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva