#9152CF#9152CF

#9152CF is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.0% C 0.188 H 304.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9152CF
RGBrgb(145, 82, 207)
HSLhsl(270, 57%, 57%)
HSVhsv(270, 60%, 81%)
CMYKcmyk(30%, 60.4%, 0%, 18.8%)
CIE-LABlab(47.70, 49.82, -54.91)
CIE-LCHlch(47.70, 74.14, 312.21°)
OKLaboklab(57.05% 0.106 -0.1554)
OKLCHoklch(57.05% 0.188 304.3)
XYZxyz(25.9543, 16.5594, 60.8483)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152CF #90CF52
analogous
#5352CF #9152CF #CF52CF
triadic
#9152CF #CF9152 #52CF91
tetradic
#9152CF #CF5352 #90CF52 #52CFCF
square
#9152CF #CF5352 #90CF52 #52CFCF
split-complementary
#9152CF #CFCF52 #52CF53
monochromatic
#542482 #7231B2 #9152CF #AF82DC #CEB2EA

Accessibility & contrast

On white

4.87
#9152CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9152CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9152CF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152CF#FFFFFF#000000##FFFFFF
##9152CF1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D70D3
Deuteranopia (green-blind)
#3471CC
Tritanopia (blue-blind)
#866B89
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9152cf;
/* rgb */ color: rgb(145, 82, 207);
/* oklch */ color: oklch(57.0% 0.188 304.3);
Tailwind
colors: {
  custom: {
    50: '#b586de',
    500: '#9152cf',
    950: '#000000',
  },
}
SCSS
$custom: #9152cf;
$custom-light: #b586de;
$custom-dark: #000000;
JSON
{
  "hex": "#9152cf",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 270.24,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.18805,
    "h": 304.3
  },
  "luminance": 0.16559
}

Semantic roles & 50–950 ramp

primary
#9152CF
secondary
#BED8A5
accent
#E04893
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9152CF

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

Preview Lab → · Contrast checker → · Palette generator →

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