#8152D8#8152D8

#8152D8 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.0% C 0.196 H 295.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8152D8
RGBrgb(129, 82, 216)
HSLhsl(261, 63%, 58%)
HSVhsv(261, 62%, 85%)
CMYKcmyk(40.3%, 62%, 0%, 15.3%)
CIE-LABlab(46.52, 48.54, -62.05)
CIE-LCHlch(46.52, 78.78, 308.04°)
OKLaboklab(55.98% 0.0844 -0.1768)
OKLCHoklch(55.98% 0.196 295.5)
XYZxyz(24.4620, 15.6591, 66.6861)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152D8 #A9D852
analogous
#5266D8 #8152D8 #C452D8
triadic
#8152D8 #D88152 #52D881
tetradic
#8152D8 #D85266 #A9D852 #52D8C4
square
#8152D8 #D85266 #A9D852 #52D8C4
split-complementary
#8152D8 #D8C452 #66D852
monochromatic
#47208F #602CC1 #8152D8 #A584E3 #CAB6EF

Accessibility & contrast

On white

5.08
#8152D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8152D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152D8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152D8#FFFFFF#000000##FFFFFF
##8152D81.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#6B708D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8152d8;
/* rgb */ color: rgb(129, 82, 216);
/* oklch */ color: oklch(56.0% 0.196 295.5);
Tailwind
colors: {
  custom: {
    50: '#ab85e5',
    500: '#8152d8',
    950: '#000000',
  },
}
SCSS
$custom: #8152d8;
$custom-light: #ab85e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8152d8",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 261.045,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55983,
    "c": 0.19596,
    "h": 295.5
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#8152D8
secondary
#CBDDA8
accent
#E642AC
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8152D8

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

Preview Lab → · Contrast checker → · Palette generator →

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