#9157BC#9157BC

#9157BC is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.159 H 308.7°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#9157BC
RGBrgb(145, 87, 188)
HSLhsl(274, 43%, 54%)
HSVhsv(274, 54%, 74%)
CMYKcmyk(22.9%, 53.7%, 0%, 26.3%)
CIE-LABlab(47.58, 42.67, -44.13)
CIE-LCHlch(47.58, 61.39, 314.04°)
OKLaboklab(56.6% 0.0992 -0.1238)
OKLCHoklch(56.6% 0.159 308.7)
XYZxyz(24.1606, 16.4673, 49.4729)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157BC #82BC57
analogous
#5F57BC #9157BC #BC57B5
triadic
#9157BC #BC9157 #57BC91
tetradic
#9157BC #BC5F57 #82BC57 #57B5BC
square
#9157BC #BC5F57 #82BC57 #57B5BC
split-complementary
#9157BC #B5BC57 #57BC5F
monochromatic
#512C6D #723D99 #9157BC #AE83CD #CAAFDF

Accessibility & contrast

On white

4.89
#9157BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#9157BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157BC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157BC#FFFFFF#000000##FFFFFF
##9157BC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396EBF
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#8B6981
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9157bc;
/* rgb */ color: rgb(145, 87, 188);
/* oklch */ color: oklch(56.6% 0.159 308.7);
Tailwind
colors: {
  custom: {
    50: '#b488d1',
    500: '#9157bc',
    950: '#000000',
  },
}
SCSS
$custom: #9157bc;
$custom-light: #b488d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9157bc",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 274.455,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56602,
    "c": 0.15864,
    "h": 308.7
  },
  "luminance": 0.16467
}

Semantic roles & 50–950 ramp

primary
#9157BC
secondary
#B4CDA2
accent
#D3558B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #9157BC

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

Preview Lab → · Contrast checker → · Palette generator →

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