#9152E1#9152E1

#9152E1 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.3% C 0.208 H 300.3°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#9152E1
RGBrgb(145, 82, 225)
HSLhsl(266, 70%, 60%)
HSVhsv(266, 64%, 88%)
CMYKcmyk(35.6%, 63.6%, 0%, 11.8%)
CIE-LABlab(48.87, 54.18, -63.28)
CIE-LCHlch(48.87, 83.31, 310.57°)
OKLaboklab(58.27% 0.105 -0.1799)
OKLCHoklch(58.27% 0.208 300.3)
XYZxyz(28.2816, 17.4904, 73.1055)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152E1 #A2E152
analogous
#525AE1 #9152E1 #D952E1
triadic
#9152E1 #E19152 #52E191
tetradic
#9152E1 #E1525A #A2E152 #52E1D9
square
#9152E1 #E1525A #A2E152 #52E1D9
split-complementary
#9152E1 #E1D952 #5AE152
monochromatic
#551B9D #7124D1 #9152E1 #B286EA #D3BAF3

Accessibility & contrast

On white

4.67
#9152E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#9152E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9152E1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152E1#FFFFFF#000000##FFFFFF
##9152E11.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E5
Deuteranopia (green-blind)
#1073DE
Tritanopia (blue-blind)
#807292
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9152e1;
/* rgb */ color: rgb(145, 82, 225);
/* oklch */ color: oklch(58.3% 0.208 300.3);
Tailwind
colors: {
  custom: {
    50: '#b686eb',
    500: '#9152e1',
    950: '#000000',
  },
}
SCSS
$custom: #9152e1;
$custom-light: #b686eb;
$custom-dark: #000000;
JSON
{
  "hex": "#9152e1",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 266.434,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58273,
    "c": 0.20832,
    "h": 300.3
  },
  "luminance": 0.17491
}

Semantic roles & 50–950 ramp

primary
#9152E1
secondary
#CBE3AC
accent
#D2137E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9152E1

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

Preview Lab → · Contrast checker → · Palette generator →

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