#9157BB#9157BB

#9157BB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.5% C 0.157 H 309.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#9157BB
RGBrgb(145, 87, 187)
HSLhsl(275, 42%, 54%)
HSVhsv(275, 53%, 73%)
CMYKcmyk(22.5%, 53.5%, 0%, 26.7%)
CIE-LABlab(47.53, 42.44, -43.64)
CIE-LCHlch(47.53, 60.87, 314.20°)
OKLaboklab(56.54% 0.0991 -0.1224)
OKLCHoklch(56.54% 0.157 309)
XYZxyz(24.0532, 16.4244, 48.9072)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157BB #81BB57
analogous
#5F57BB #9157BB #BB57B3
triadic
#9157BB #BB9157 #57BB91
tetradic
#9157BB #BB5F57 #81BB57 #57B3BB
square
#9157BB #BB5F57 #81BB57 #57B3BB
split-complementary
#9157BB #B3BB57 #57BB5F
monochromatic
#512C6C #723D97 #9157BB #AE83CD #CAAEDE

Accessibility & contrast

On white

4.90
#9157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#9157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157BB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157BB#FFFFFF#000000##FFFFFF
##9157BB1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBE
Deuteranopia (green-blind)
#4C72B8
Tritanopia (blue-blind)
#8B6981
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9157bb;
/* rgb */ color: rgb(145, 87, 187);
/* oklch */ color: oklch(56.5% 0.157 309.0);
Tailwind
colors: {
  custom: {
    50: '#b488d0',
    500: '#9157bb',
    950: '#000000',
  },
}
SCSS
$custom: #9157bb;
$custom-light: #b488d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9157bb",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 274.8,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56543,
    "c": 0.15747,
    "h": 309
  },
  "luminance": 0.16424
}

Semantic roles & 50–950 ramp

primary
#9157BB
secondary
#B3CCA2
accent
#D2568A
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #9157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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