#8152D4#8152D4

#8152D4 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.191 H 296.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#8152D4
RGBrgb(129, 82, 212)
HSLhsl(262, 60%, 58%)
HSVhsv(262, 61%, 83%)
CMYKcmyk(39.2%, 61.3%, 0%, 16.9%)
CIE-LABlab(46.25, 47.49, -60.20)
CIE-LCHlch(46.25, 76.68, 308.27°)
OKLaboklab(55.7% 0.0847 -0.1714)
OKLCHoklch(55.7% 0.191 296.3)
XYZxyz(23.9511, 15.4547, 63.9958)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152D4 #A5D452
analogous
#5264D4 #8152D4 #C252D4
triadic
#8152D4 #D48152 #52D481
tetradic
#8152D4 #D45264 #A5D452 #52D4C2
square
#8152D4 #D45264 #A5D452 #52D4C2
split-complementary
#8152D4 #D4C252 #64D452
monochromatic
#472289 #612EBA #8152D4 #A583E0 #C8B4EC

Accessibility & contrast

On white

5.13
#8152D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#8152D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152D4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152D4#FFFFFF#000000##FFFFFF
##8152D41.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#0A6CD1
Tritanopia (blue-blind)
#6D6F8B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8152d4;
/* rgb */ color: rgb(129, 82, 212);
/* oklch */ color: oklch(55.7% 0.191 296.3);
Tailwind
colors: {
  custom: {
    50: '#ab85e2',
    500: '#8152d4',
    950: '#000000',
  },
}
SCSS
$custom: #8152d4;
$custom-light: #ab85e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8152d4",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 261.692,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55698,
    "c": 0.19119,
    "h": 296.3
  },
  "luminance": 0.15455
}

Semantic roles & 50–950 ramp

primary
#8152D4
secondary
#C8DBA7
accent
#E344AA
background
#FAF8FD
surface
#F5EFFB
border
#CFCAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8152D4

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

Preview Lab → · Contrast checker → · Palette generator →

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