#9152CD#9152CD

#9152CD is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.9% C 0.186 H 304.8°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9152CD
RGBrgb(145, 82, 205)
HSLhsl(271, 55%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(29.3%, 60%, 0%, 19.6%)
CIE-LABlab(47.58, 49.34, -53.96)
CIE-LCHlch(47.58, 73.12, 312.44°)
OKLaboklab(56.92% 0.106 -0.1526)
OKLCHoklch(56.92% 0.186 304.8)
XYZxyz(25.7114, 16.4622, 59.5688)
Luminance0.1646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152CD #8ECD52
analogous
#5452CD #9152CD #CD52CC
triadic
#9152CD #CD9152 #52CD91
tetradic
#9152CD #CD5452 #8ECD52 #52CCCD
square
#9152CD #CD5452 #8ECD52 #52CCCD
split-complementary
#9152CD #CCCD52 #52CD54
monochromatic
#532580 #7233AF #9152CD #AF81DB #CDB1E8

Accessibility & contrast

On white

4.89
#9152CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9152CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9152CD
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152CD#FFFFFF#000000##FFFFFF
##9152CD1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD1
Deuteranopia (green-blind)
#3671CA
Tritanopia (blue-blind)
#866B88
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9152cd;
/* rgb */ color: rgb(145, 82, 205);
/* oklch */ color: oklch(56.9% 0.186 304.8);
Tailwind
colors: {
  custom: {
    50: '#b586dd',
    500: '#9152cd',
    950: '#000000',
  },
}
SCSS
$custom: #9152cd;
$custom-light: #b586dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9152cd",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 270.732,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56919,
    "c": 0.18579,
    "h": 304.8
  },
  "luminance": 0.16462
}

Semantic roles & 50–950 ramp

primary
#9152CD
secondary
#BDD7A4
accent
#DE4992
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9152CD

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

Preview Lab → · Contrast checker → · Palette generator →

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