#9152E2#9152E2

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

Color values

HEX#9152E2
RGBrgb(145, 82, 226)
HSLhsl(266, 71%, 60%)
HSVhsv(266, 64%, 89%)
CMYKcmyk(35.8%, 63.7%, 0%, 11.4%)
CIE-LABlab(48.94, 54.43, -63.74)
CIE-LCHlch(48.94, 83.82, 310.50°)
OKLaboklab(58.34% 0.1049 -0.1813)
OKLCHoklch(58.34% 0.209 300)
XYZxyz(28.4185, 17.5451, 73.8261)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152E2 #A3E252
analogous
#525BE2 #9152E2 #D952E2
triadic
#9152E2 #E29152 #52E291
tetradic
#9152E2 #E2525B #A3E252 #52E2D9
square
#9152E2 #E2525B #A3E252 #52E2D9
split-complementary
#9152E2 #E2D952 #5BE252
monochromatic
#551B9F #7023D3 #9152E2 #B286EB #D4BBF4

Accessibility & contrast

On white

4.66
#9152E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#9152E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9152E2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152E2#FFFFFF#000000##FFFFFF
##9152E21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E6
Deuteranopia (green-blind)
#0B73DF
Tritanopia (blue-blind)
#7F7293
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9152e2;
/* rgb */ color: rgb(145, 82, 226);
/* oklch */ color: oklch(58.3% 0.209 300.0);
Tailwind
colors: {
  custom: {
    50: '#b786ec',
    500: '#9152e2',
    950: '#000000',
  },
}
SCSS
$custom: #9152e2;
$custom-light: #b786ec;
$custom-dark: #000000;
JSON
{
  "hex": "#9152e2",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 266.25,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58343,
    "c": 0.20945,
    "h": 300
  },
  "luminance": 0.17545
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9152E2

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

Preview Lab → · Contrast checker → · Palette generator →

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