#9151C8#9151C8

#9151C8 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.5% C 0.182 H 306.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9151C8
RGBrgb(145, 81, 200)
HSLhsl(272, 52%, 55%)
HSVhsv(272, 60%, 78%)
CMYKcmyk(27.5%, 59.5%, 0%, 21.6%)
CIE-LABlab(47.07, 48.68, -51.89)
CIE-LCHlch(47.07, 71.15, 313.17°)
OKLaboklab(56.45% 0.1073 -0.1465)
OKLCHoklch(56.45% 0.182 306.2)
XYZxyz(25.0426, 16.0750, 56.4159)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151C8 #88C851
analogous
#5651C8 #9151C8 #C851C3
triadic
#9151C8 #C89151 #51C891
tetradic
#9151C8 #C85651 #88C851 #51C3C8
square
#9151C8 #C85651 #88C851 #51C3C8
split-complementary
#9151C8 #C3C851 #51C856
monochromatic
#522679 #7235A7 #9151C8 #AE80D7 #CCAEE5

Accessibility & contrast

On white

4.98
#9151C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#9151C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151C8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151C8#FFFFFF#000000##FFFFFF
##9151C81.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6ECC
Deuteranopia (green-blind)
#3B70C5
Tritanopia (blue-blind)
#886885
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9151c8;
/* rgb */ color: rgb(145, 81, 200);
/* oklch */ color: oklch(56.5% 0.182 306.2);
Tailwind
colors: {
  custom: {
    50: '#b585d9',
    500: '#9151c8',
    950: '#000000',
  },
}
SCSS
$custom: #9151c8;
$custom-light: #b585d9;
$custom-dark: #000000;
JSON
{
  "hex": "#9151c8",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 200
  },
  "hsl": {
    "h": 272.269,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56454,
    "c": 0.1816,
    "h": 306.2
  },
  "luminance": 0.16075
}

Semantic roles & 50–950 ramp

primary
#9151C8
secondary
#B9D3A1
accent
#DB4C8E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #9151C8

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

Preview Lab → · Contrast checker → · Palette generator →

#9151C8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva