#8152E4#8152E4

#8152E4 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.210 H 293.4°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8152E4
RGBrgb(129, 82, 228)
HSLhsl(259, 73%, 61%)
HSVhsv(259, 64%, 89%)
CMYKcmyk(43.4%, 64%, 0%, 10.6%)
CIE-LABlab(47.37, 51.73, -67.50)
CIE-LCHlch(47.37, 85.04, 307.46°)
OKLaboklab(56.86% 0.0834 -0.1929)
OKLCHoklch(56.86% 0.21 293.4)
XYZxyz(26.0703, 16.3024, 75.1568)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152E4 #B5E452
analogous
#526CE4 #8152E4 #CA52E4
triadic
#8152E4 #E48152 #52E481
tetradic
#8152E4 #E4526C #B5E452 #52E4CA
square
#8152E4 #E4526C #B5E452 #52E4CA
split-complementary
#8152E4 #E4CA52 #6CE452
monochromatic
#4519A2 #5C22D7 #8152E4 #A887EC #CEBCF5

Accessibility & contrast

On white

4.93
#8152E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8152E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152E4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152E4#FFFFFF#000000##FFFFFF
##8152E41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#006EE1
Tritanopia (blue-blind)
#657494
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8152e4;
/* rgb */ color: rgb(129, 82, 228);
/* oklch */ color: oklch(56.9% 0.210 293.4);
Tailwind
colors: {
  custom: {
    50: '#ad85ed',
    500: '#8152e4',
    950: '#000000',
  },
}
SCSS
$custom: #8152e4;
$custom-light: #ad85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8152e4",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 259.315,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56862,
    "c": 0.21013,
    "h": 293.4
  },
  "luminance": 0.16303
}

Semantic roles & 50–950 ramp

primary
#8152E4
secondary
#D3E5AD
accent
#D51096
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8152E4

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

Preview Lab → · Contrast checker → · Palette generator →

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