#9151D2#9151D2

#9151D2 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.1% C 0.193 H 303.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#9151D2
RGBrgb(145, 81, 210)
HSLhsl(270, 59%, 57%)
HSVhsv(270, 61%, 82%)
CMYKcmyk(31%, 61.4%, 0%, 17.6%)
CIE-LABlab(47.70, 51.05, -56.63)
CIE-LCHlch(47.70, 76.25, 312.03°)
OKLaboklab(57.11% 0.1071 -0.1604)
OKLCHoklch(57.11% 0.193 303.7)
XYZxyz(26.2497, 16.5578, 62.7733)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9151D2 #92D251
analogous
#5152D2 #9151D2 #D151D2
triadic
#9151D2 #D29151 #51D291
tetradic
#9151D2 #D25152 #92D251 #51D2D1
square
#9151D2 #D25152 #92D251 #51D2D1
split-complementary
#9151D2 #D2D151 #52D251
monochromatic
#542386 #722FB7 #9151D2 #B082DF #CEB2EB

Accessibility & contrast

On white

4.87
#9151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#9151D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9151D2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9151D2#FFFFFF#000000##FFFFFF
##9151D21.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)
#0070D6
Deuteranopia (green-blind)
#2F71CF
Tritanopia (blue-blind)
#856C8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9151d2;
/* rgb */ color: rgb(145, 81, 210);
/* oklch */ color: oklch(57.1% 0.193 303.7);
Tailwind
colors: {
  custom: {
    50: '#b585e0',
    500: '#9151d2',
    950: '#000000',
  },
}
SCSS
$custom: #9151d2;
$custom-light: #b585e0;
$custom-dark: #000000;
JSON
{
  "hex": "#9151d2",
  "rgb": {
    "r": 145,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 269.767,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57109,
    "c": 0.19285,
    "h": 303.7
  },
  "luminance": 0.16558
}

Semantic roles & 50–950 ramp

primary
#9151D2
secondary
#C0DAA5
accent
#E24695
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9151D2

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

Preview Lab → · Contrast checker → · Palette generator →

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