#9157CC#9157CC

#9157CC is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.6% C 0.177 H 304.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9157CC
RGBrgb(145, 87, 204)
HSLhsl(270, 53%, 57%)
HSVhsv(270, 57%, 80%)
CMYKcmyk(28.9%, 57.4%, 0%, 20%)
CIE-LABlab(48.51, 46.46, -51.90)
CIE-LCHlch(48.51, 69.65, 311.83°)
OKLaboklab(57.58% 0.0998 -0.1465)
OKLCHoklch(57.58% 0.177 304.3)
XYZxyz(25.9819, 17.1959, 59.0654)
Luminance0.1720 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157CC #92CC57
analogous
#5757CC #9157CC #CC57CC
triadic
#9157CC #CC9157 #57CC91
tetradic
#9157CC #CC5757 #92CC57 #57CCCC
square
#9157CC #CC5757 #92CC57 #57CCCC
split-complementary
#9157CC #CCCC57 #57CC57
monochromatic
#542781 #7236B0 #9157CC #B086DA #CEB5E9

Accessibility & contrast

On white

4.73
#9157CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#9157CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157CC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157CC#FFFFFF#000000##FFFFFF
##9157CC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2672D0
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#866E89
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9157cc;
/* rgb */ color: rgb(145, 87, 204);
/* oklch */ color: oklch(57.6% 0.177 304.3);
Tailwind
colors: {
  custom: {
    50: '#b589dc',
    500: '#9157cc',
    950: '#000000',
  },
}
SCSS
$custom: #9157cc;
$custom-light: #b589dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9157cc",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 269.744,
    "s": 53.425,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57579,
    "c": 0.17729,
    "h": 304.3
  },
  "luminance": 0.17196
}

Semantic roles & 50–950 ramp

primary
#9157CC
secondary
#C0D7A8
accent
#DD4B95
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157CC

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

Preview Lab → · Contrast checker → · Palette generator →

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