#8152CB#8152CB

#8152CB is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.180 H 298.1°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8152CB
RGBrgb(129, 82, 203)
HSLhsl(263, 54%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(36.5%, 59.6%, 0%, 20.4%)
CIE-LABlab(45.65, 45.14, -56.00)
CIE-LCHlch(45.65, 71.93, 308.87°)
OKLaboklab(55.07% 0.0851 -0.1591)
OKLCHoklch(55.07% 0.18 298.1)
XYZxyz(22.8474, 15.0132, 58.1825)
Luminance0.1501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8152CB #9CCB52
analogous
#525FCB #8152CB #BE52CB
triadic
#8152CB #CB8152 #52CB81
tetradic
#8152CB #CB525F #9CCB52 #52CBBE
square
#8152CB #CB525F #9CCB52 #52CBBE
split-complementary
#8152CB #CBBE52 #5FCB52
monochromatic
#48267D #6234AC #8152CB #A381D9 #C6B0E7

Accessibility & contrast

On white

5.25
#8152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8152CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8152CB
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8152CB#FFFFFF#000000##FFFFFF
##8152CB1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CCF
Deuteranopia (green-blind)
#236BC8
Tritanopia (blue-blind)
#706C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8152cb;
/* rgb */ color: rgb(129, 82, 203);
/* oklch */ color: oklch(55.1% 0.180 298.1);
Tailwind
colors: {
  custom: {
    50: '#aa85db',
    500: '#8152cb',
    950: '#000000',
  },
}
SCSS
$custom: #8152cb;
$custom-light: #aa85db;
$custom-dark: #000000;
JSON
{
  "hex": "#8152cb",
  "rgb": {
    "r": 129,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 263.306,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55071,
    "c": 0.18038,
    "h": 298.1
  },
  "luminance": 0.15014
}

Semantic roles & 50–950 ramp

primary
#8152CB
secondary
#C2D5A3
accent
#DD4BA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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