#9152D8#9152D8

#9152D8 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.7% C 0.198 H 302.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9152D8
RGBrgb(145, 82, 216)
HSLhsl(268, 63%, 58%)
HSVhsv(268, 62%, 85%)
CMYKcmyk(32.9%, 62%, 0%, 15.3%)
CIE-LABlab(48.28, 51.98, -59.13)
CIE-LCHlch(48.28, 78.73, 311.32°)
OKLaboklab(57.65% 0.1056 -0.1677)
OKLCHoklch(57.65% 0.198 302.2)
XYZxyz(27.0861, 17.0121, 66.8091)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9152D8 #99D852
analogous
#5256D8 #9152D8 #D452D8
triadic
#9152D8 #D89152 #52D891
tetradic
#9152D8 #D85256 #99D852 #52D8D4
square
#9152D8 #D85256 #99D852 #52D8D4
split-complementary
#9152D8 #D8D452 #56D852
monochromatic
#54208F #722CC1 #9152D8 #B184E3 #D1B6EF

Accessibility & contrast

On white

4.77
#9152D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9152D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9152D8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9152D8#FFFFFF#000000##FFFFFF
##9152D81.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DC
Deuteranopia (green-blind)
#2772D5
Tritanopia (blue-blind)
#836F8D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9152d8;
/* rgb */ color: rgb(145, 82, 216);
/* oklch */ color: oklch(57.7% 0.198 302.2);
Tailwind
colors: {
  custom: {
    50: '#b686e5',
    500: '#9152d8',
    950: '#000000',
  },
}
SCSS
$custom: #9152d8;
$custom-light: #b686e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9152d8",
  "rgb": {
    "r": 145,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 268.209,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.57651,
    "c": 0.19822,
    "h": 302.2
  },
  "luminance": 0.17012
}

Semantic roles & 50–950 ramp

primary
#9152D8
secondary
#C4DDA8
accent
#E64299
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9152D8

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

Preview Lab → · Contrast checker → · Palette generator →

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