#8152E2#8152E2

#8152E2 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.208 H 293.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8152E2
RGBrgb(129, 82, 226)
HSLhsl(260, 71%, 60%)
HSVhsv(260, 64%, 89%)
CMYKcmyk(42.9%, 63.7%, 0%, 11.4%)
CIE-LABlab(47.23, 51.19, -66.60)
CIE-LCHlch(47.23, 84.00, 307.55°)
OKLaboklab(56.71% 0.0836 -0.1902)
OKLCHoklch(56.71% 0.208 293.7)
XYZxyz(25.7943, 16.1920, 73.7031)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152E2 #B3E252
analogous
#526BE2 #8152E2 #C952E2
triadic
#8152E2 #E28152 #52E281
tetradic
#8152E2 #E2526B #B3E252 #52E2C9
square
#8152E2 #E2526B #B3E252 #52E2C9
split-complementary
#8152E2 #E2C952 #6BE252
monochromatic
#461B9F #5D23D3 #8152E2 #A786EB #CDBBF4

Accessibility & contrast

On white

4.95
#8152E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8152E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152E2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152E2#FFFFFF#000000##FFFFFF
##8152E21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E6
Deuteranopia (green-blind)
#006DDF
Tritanopia (blue-blind)
#667493
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8152e2;
/* rgb */ color: rgb(129, 82, 226);
/* oklch */ color: oklch(56.7% 0.208 293.7);
Tailwind
colors: {
  custom: {
    50: '#ac85ec',
    500: '#8152e2',
    950: '#000000',
  },
}
SCSS
$custom: #8152e2;
$custom-light: #ac85ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8152e2",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 259.583,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.20778,
    "h": 293.7
  },
  "luminance": 0.16193
}

Semantic roles & 50–950 ramp

primary
#8152E2
secondary
#D1E3AC
accent
#D31294
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8152E2

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

Preview Lab → · Contrast checker → · Palette generator →

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