#9157DC#9157DC

#9157DC is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.6% C 0.196 H 300.6°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#9157DC
RGBrgb(145, 87, 220)
HSLhsl(266, 66%, 60%)
HSVhsv(266, 60%, 86%)
CMYKcmyk(34.1%, 60.5%, 0%, 13.7%)
CIE-LABlab(49.50, 50.37, -59.43)
CIE-LCHlch(49.50, 77.90, 310.28°)
OKLaboklab(58.62% 0.0996 -0.1686)
OKLCHoklch(58.62% 0.196 300.6)
XYZxyz(28.0004, 18.0033, 69.6961)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157DC #A2DC57
analogous
#5760DC #9157DC #D357DC
triadic
#9157DC #DC9157 #57DC91
tetradic
#9157DC #DC5760 #A2DC57 #57DCD3
square
#9157DC #DC5760 #A2DC57 #57DCD3
split-complementary
#9157DC #DCD357 #60DC57
monochromatic
#552099 #712ACB #9157DC #B28AE7 #D3BCF1

Accessibility & contrast

On white

4.56
#9157DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#9157DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157DC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157DC#FFFFFF#000000##000000
##9157DC1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#2A75D9
Tritanopia (blue-blind)
#817391
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9157dc;
/* rgb */ color: rgb(145, 87, 220);
/* oklch */ color: oklch(58.6% 0.196 300.6);
Tailwind
colors: {
  custom: {
    50: '#b689e8',
    500: '#9157dc',
    950: '#000000',
  },
}
SCSS
$custom: #9157dc;
$custom-light: #b689e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9157dc",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 220
  },
  "hsl": {
    "h": 266.165,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58624,
    "c": 0.19585,
    "h": 300.6
  },
  "luminance": 0.18003
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9157DC

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

Preview Lab → · Contrast checker → · Palette generator →

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