#8152CD#8152CD

#8152CD is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.2% C 0.183 H 297.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8152CD
RGBrgb(129, 82, 205)
HSLhsl(263, 55%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(37.1%, 60%, 0%, 19.6%)
CIE-LABlab(45.78, 45.66, -56.94)
CIE-LCHlch(45.78, 72.99, 308.73°)
OKLaboklab(55.21% 0.085 -0.1618)
OKLCHoklch(55.21% 0.183 297.7)
XYZxyz(23.0872, 15.1092, 59.4458)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152CD #9ECD52
analogous
#5261CD #8152CD #BF52CD
triadic
#8152CD #CD8152 #52CD81
tetradic
#8152CD #CD5261 #9ECD52 #52CDBF
square
#8152CD #CD5261 #9ECD52 #52CDBF
split-complementary
#8152CD #CDBF52 #61CD52
monochromatic
#482580 #6233AF #8152CD #A481DB #C6B1E8

Accessibility & contrast

On white

5.22
#8152CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#8152CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152CD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152CD#FFFFFF#000000##FFFFFF
##8152CD1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD1
Deuteranopia (green-blind)
#206BCA
Tritanopia (blue-blind)
#6F6C88
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8152cd;
/* rgb */ color: rgb(129, 82, 205);
/* oklch */ color: oklch(55.2% 0.183 297.7);
Tailwind
colors: {
  custom: {
    50: '#aa85dd',
    500: '#8152cd',
    950: '#000000',
  },
}
SCSS
$custom: #8152cd;
$custom-light: #aa85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8152cd",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 262.927,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55208,
    "c": 0.1828,
    "h": 297.7
  },
  "luminance": 0.15109
}

Semantic roles & 50–950 ramp

primary
#8152CD
secondary
#C3D7A4
accent
#DE49A5
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8152CD

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

Preview Lab → · Contrast checker → · Palette generator →

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