#9152CB#9152CB

#9152CB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.8% C 0.184 H 305.3°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#9152CB
RGBrgb(145, 82, 203)
HSLhsl(271, 54%, 56%)
HSVhsv(271, 60%, 80%)
CMYKcmyk(28.6%, 59.6%, 0%, 20.4%)
CIE-LABlab(47.45, 48.86, -53.01)
CIE-LCHlch(47.45, 72.10, 312.67°)
OKLaboklab(56.79% 0.1061 -0.1498)
OKLCHoklch(56.79% 0.184 305.3)
XYZxyz(25.4715, 16.3663, 58.3055)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152CB #8CCB52
analogous
#5452CB #9152CB #CB52C8
triadic
#9152CB #CB9152 #52CB91
tetradic
#9152CB #CB5452 #8CCB52 #52C8CB
square
#9152CB #CB5452 #8CCB52 #52C8CB
split-complementary
#9152CB #C8CB52 #52CB54
monochromatic
#53267D #7234AC #9152CB #AF81D9 #CDB0E7

Accessibility & contrast

On white

4.91
#9152CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#9152CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9152CB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152CB#FFFFFF#000000##FFFFFF
##9152CB1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#876A87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9152cb;
/* rgb */ color: rgb(145, 82, 203);
/* oklch */ color: oklch(56.8% 0.184 305.3);
Tailwind
colors: {
  custom: {
    50: '#b585db',
    500: '#9152cb',
    950: '#000000',
  },
}
SCSS
$custom: #9152cb;
$custom-light: #b585db;
$custom-dark: #000000;
JSON
{
  "hex": "#9152cb",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 271.24,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.56789,
    "c": 0.18352,
    "h": 305.3
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#9152CB
secondary
#BBD5A3
accent
#DD4B91
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #9152CB

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

Preview Lab → · Contrast checker → · Palette generator →

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