#8152E5#8152E5

#8152E5 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.9% C 0.211 H 293.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8152E5
RGBrgb(129, 82, 229)
HSLhsl(259, 74%, 61%)
HSVhsv(259, 64%, 90%)
CMYKcmyk(43.7%, 64.2%, 0%, 10.2%)
CIE-LABlab(47.44, 51.99, -67.94)
CIE-LCHlch(47.44, 85.56, 307.42°)
OKLaboklab(56.94% 0.0833 -0.1942)
OKLCHoklch(56.94% 0.211 293.2)
XYZxyz(26.2096, 16.3581, 75.8900)
Luminance0.1636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152E5 #B6E552
analogous
#526CE5 #8152E5 #CB52E5
triadic
#8152E5 #E58152 #52E581
tetradic
#8152E5 #E5526C #B6E552 #52E5CB
square
#8152E5 #E5526C #B6E552 #52E5CB
split-complementary
#8152E5 #E5CB52 #6CE552
monochromatic
#4519A4 #5C21D9 #8152E5 #A887ED #CEBCF5

Accessibility & contrast

On white

4.92
#8152E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8152E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152E5
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152E5#FFFFFF#000000##FFFFFF
##8152E51.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#006EE2
Tritanopia (blue-blind)
#657594
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8152e5;
/* rgb */ color: rgb(129, 82, 229);
/* oklch */ color: oklch(56.9% 0.211 293.2);
Tailwind
colors: {
  custom: {
    50: '#ad85ee',
    500: '#8152e5',
    950: '#000000',
  },
}
SCSS
$custom: #8152e5;
$custom-light: #ad85ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8152e5",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 259.184,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56936,
    "c": 0.2113,
    "h": 293.2
  },
  "luminance": 0.16359
}

Semantic roles & 50–950 ramp

primary
#8152E5
secondary
#D3E5AE
accent
#D61097
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8152E5

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

Preview Lab → · Contrast checker → · Palette generator →

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