#8152CC#8152CC

#8152CC is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.1% C 0.182 H 297.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#8152CC
RGBrgb(129, 82, 204)
HSLhsl(263, 54%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(36.8%, 59.8%, 0%, 20%)
CIE-LABlab(45.72, 45.40, -56.47)
CIE-LCHlch(45.72, 72.46, 308.80°)
OKLaboklab(55.14% 0.0851 -0.1604)
OKLCHoklch(55.14% 0.182 297.9)
XYZxyz(22.9669, 15.0610, 58.8121)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152CC #9DCC52
analogous
#5260CC #8152CC #BE52CC
triadic
#8152CC #CC8152 #52CC81
tetradic
#8152CC #CC5260 #9DCC52 #52CCBE
square
#8152CC #CC5260 #9DCC52 #52CCBE
split-complementary
#8152CC #CCBE52 #60CC52
monochromatic
#48257E #6233AE #8152CC #A381DA #C6B1E8

Accessibility & contrast

On white

5.23
#8152CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#8152CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152CC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152CC#FFFFFF#000000##FFFFFF
##8152CC1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#226BC9
Tritanopia (blue-blind)
#706C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8152cc;
/* rgb */ color: rgb(129, 82, 204);
/* oklch */ color: oklch(55.1% 0.182 297.9);
Tailwind
colors: {
  custom: {
    50: '#aa85dc',
    500: '#8152cc',
    950: '#000000',
  },
}
SCSS
$custom: #8152cc;
$custom-light: #aa85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8152cc",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 263.115,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5514,
    "c": 0.18159,
    "h": 297.9
  },
  "luminance": 0.15061
}

Semantic roles & 50–950 ramp

primary
#8152CC
secondary
#C3D6A4
accent
#DE4AA5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8152CC

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

Preview Lab → · Contrast checker → · Palette generator →

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