#9157DD#9157DD

#9157DD is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.7% C 0.197 H 300.3°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9157DD
RGBrgb(145, 87, 221)
HSLhsl(266, 66%, 60%)
HSVhsv(266, 61%, 87%)
CMYKcmyk(34.4%, 60.6%, 0%, 13.3%)
CIE-LABlab(49.56, 50.61, -59.90)
CIE-LCHlch(49.56, 78.42, 310.20°)
OKLaboklab(58.69% 0.0995 -0.17)
OKLCHoklch(58.69% 0.197 300.3)
XYZxyz(28.1332, 18.0564, 70.3957)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157DD #A3DD57
analogous
#5760DD #9157DD #D457DD
triadic
#9157DD #DD9157 #57DD91
tetradic
#9157DD #DD5760 #A3DD57 #57DDD4
square
#9157DD #DD5760 #A3DD57 #57DDD4
split-complementary
#9157DD #DDD457 #60DD57
monochromatic
#551F9A #702ACD #9157DD #B28AE7 #D4BDF2

Accessibility & contrast

On white

4.55
#9157DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#9157DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157DD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157DD#FFFFFF#000000##000000
##9157DD1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E1
Deuteranopia (green-blind)
#2875DA
Tritanopia (blue-blind)
#817492
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9157dd;
/* rgb */ color: rgb(145, 87, 221);
/* oklch */ color: oklch(58.7% 0.197 300.3);
Tailwind
colors: {
  custom: {
    50: '#b689e8',
    500: '#9157dd',
    950: '#000000',
  },
}
SCSS
$custom: #9157dd;
$custom-light: #b689e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9157dd",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 221
  },
  "hsl": {
    "h": 265.97,
    "s": 66.337,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58691,
    "c": 0.19702,
    "h": 300.3
  },
  "luminance": 0.18057
}

Semantic roles & 50–950 ramp

primary
#9157DD
secondary
#CBE1AE
accent
#CE177F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9157DD

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

Preview Lab → · Contrast checker → · Palette generator →

#9157DD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva