#9152CC#9152CC

#9152CC is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.9% C 0.185 H 305.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9152CC
RGBrgb(145, 82, 204)
HSLhsl(271, 54%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(28.9%, 59.8%, 0%, 20%)
CIE-LABlab(47.51, 49.10, -53.49)
CIE-LCHlch(47.51, 72.61, 312.55°)
OKLaboklab(56.85% 0.106 -0.1512)
OKLCHoklch(56.85% 0.185 305)
XYZxyz(25.5911, 16.4141, 58.9351)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152CC #8DCC52
analogous
#5452CC #9152CC #CC52CA
triadic
#9152CC #CC9152 #52CC91
tetradic
#9152CC #CC5452 #8DCC52 #52CACC
square
#9152CC #CC5452 #8DCC52 #52CACC
split-complementary
#9152CC #CACC52 #52CC54
monochromatic
#53257E #7233AE #9152CC #AF81DA #CDB1E8

Accessibility & contrast

On white

4.90
#9152CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9152CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9152CC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152CC#FFFFFF#000000##FFFFFF
##9152CC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#876A87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9152cc;
/* rgb */ color: rgb(145, 82, 204);
/* oklch */ color: oklch(56.9% 0.185 305.0);
Tailwind
colors: {
  custom: {
    50: '#b586dc',
    500: '#9152cc',
    950: '#000000',
  },
}
SCSS
$custom: #9152cc;
$custom-light: #b586dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9152cc",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 270.984,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56854,
    "c": 0.18466,
    "h": 305
  },
  "luminance": 0.16414
}

Semantic roles & 50–950 ramp

primary
#9152CC
secondary
#BCD6A4
accent
#DE4A91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #9152CC

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

Preview Lab → · Contrast checker → · Palette generator →

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