#9157CE#9157CE

#9157CE is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.7% C 0.180 H 303.8°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#9157CE
RGBrgb(145, 87, 206)
HSLhsl(269, 55%, 57%)
HSVhsv(269, 58%, 81%)
CMYKcmyk(29.6%, 57.8%, 0%, 19.2%)
CIE-LABlab(48.63, 46.94, -52.85)
CIE-LCHlch(48.63, 70.69, 311.61°)
OKLaboklab(57.71% 0.0998 -0.1493)
OKLCHoklch(57.71% 0.18 303.8)
XYZxyz(26.2233, 17.2924, 60.3368)
Luminance0.1729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157CE #94CE57
analogous
#5758CE #9157CE #CD57CE
triadic
#9157CE #CE9157 #57CE91
tetradic
#9157CE #CE5758 #94CE57 #57CECD
square
#9157CE #CE5758 #94CE57 #57CECD
split-complementary
#9157CE #CECD57 #58CE57
monochromatic
#542784 #7234B3 #9157CE #B086DC #CFB6EA

Accessibility & contrast

On white

4.71
#9157CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#9157CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157CE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157CE#FFFFFF#000000##FFFFFF
##9157CE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2372D2
Deuteranopia (green-blind)
#3C73CB
Tritanopia (blue-blind)
#866F8A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9157ce;
/* rgb */ color: rgb(145, 87, 206);
/* oklch */ color: oklch(57.7% 0.180 303.8);
Tailwind
colors: {
  custom: {
    50: '#b589de',
    500: '#9157ce',
    950: '#000000',
  },
}
SCSS
$custom: #9157ce;
$custom-light: #b589de;
$custom-dark: #000000;
JSON
{
  "hex": "#9157ce",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 206
  },
  "hsl": {
    "h": 269.244,
    "s": 54.839,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57706,
    "c": 0.17963,
    "h": 303.8
  },
  "luminance": 0.17292
}

Semantic roles & 50–950 ramp

primary
#9157CE
secondary
#C1D8A8
accent
#DE4A96
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157CE

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

Preview Lab → · Contrast checker → · Palette generator →

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