#9151D8#9151D8

#9151D8 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.5% C 0.200 H 302.3°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9151D8
RGBrgb(145, 81, 216)
HSLhsl(268, 63%, 58%)
HSVhsv(268, 63%, 85%)
CMYKcmyk(32.9%, 62.5%, 0%, 15.3%)
CIE-LABlab(48.09, 52.50, -59.44)
CIE-LCHlch(48.09, 79.30, 311.45°)
OKLaboklab(57.51% 0.1067 -0.1686)
OKLCHoklch(57.51% 0.2 302.3)
XYZxyz(27.0113, 16.8624, 66.7842)
Luminance0.1686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151D8 #98D851
analogous
#5155D8 #9151D8 #D451D8
triadic
#9151D8 #D89151 #51D891
tetradic
#9151D8 #D85155 #98D851 #51D8D4
square
#9151D8 #D85155 #98D851 #51D8D4
split-complementary
#9151D8 #D8D451 #55D851
monochromatic
#54208F #722BC1 #9151D8 #B183E3 #D0B5EE

Accessibility & contrast

On white

4.80
#9151D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#9151D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151D8
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151D8#FFFFFF#000000##FFFFFF
##9151D81.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DC
Deuteranopia (green-blind)
#2572D5
Tritanopia (blue-blind)
#836E8D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9151d8;
/* rgb */ color: rgb(145, 81, 216);
/* oklch */ color: oklch(57.5% 0.200 302.3);
Tailwind
colors: {
  custom: {
    50: '#b685e5',
    500: '#9151d8',
    950: '#000000',
  },
}
SCSS
$custom: #9151d8;
$custom-light: #b685e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9151d8",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 268.444,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57514,
    "c": 0.19959,
    "h": 302.3
  },
  "luminance": 0.16862
}

Semantic roles & 50–950 ramp

primary
#9151D8
secondary
#C4DDA8
accent
#E64198
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9151D8

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

Preview Lab → · Contrast checker → · Palette generator →

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