#9157CF#9157CF

#9157CF is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.8% C 0.181 H 303.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#9157CF
RGBrgb(145, 87, 207)
HSLhsl(269, 56%, 58%)
HSVhsv(269, 58%, 81%)
CMYKcmyk(30%, 58%, 0%, 18.8%)
CIE-LABlab(48.69, 47.18, -53.33)
CIE-LCHlch(48.69, 71.20, 311.50°)
OKLaboklab(57.77% 0.0998 -0.1507)
OKLCHoklch(57.77% 0.181 303.5)
XYZxyz(26.3452, 17.3412, 60.9786)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157CF #95CF57
analogous
#5759CF #9157CF #CD57CF
triadic
#9157CF #CF9157 #57CF91
tetradic
#9157CF #CF5759 #95CF57 #57CFCD
square
#9157CF #CF5759 #95CF57 #57CFCD
split-complementary
#9157CF #CFCD57 #59CF57
monochromatic
#542685 #7234B5 #9157CF #B087DD #CFB6EA

Accessibility & contrast

On white

4.70
#9157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#9157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157CF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157CF#FFFFFF#000000##FFFFFF
##9157CF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2272D3
Deuteranopia (green-blind)
#3B73CC
Tritanopia (blue-blind)
#866F8B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9157cf;
/* rgb */ color: rgb(145, 87, 207);
/* oklch */ color: oklch(57.8% 0.181 303.5);
Tailwind
colors: {
  custom: {
    50: '#b589de',
    500: '#9157cf',
    950: '#000000',
  },
}
SCSS
$custom: #9157cf;
$custom-light: #b589de;
$custom-dark: #000000;
JSON
{
  "hex": "#9157cf",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 269,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5777,
    "c": 0.18078,
    "h": 303.5
  },
  "luminance": 0.17341
}

Semantic roles & 50–950 ramp

primary
#9157CF
secondary
#C2D9A9
accent
#DF4996
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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