#9157BF#9157BF

#9157BF is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.8% C 0.162 H 307.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9157BF
RGBrgb(145, 87, 191)
HSLhsl(273, 45%, 55%)
HSVhsv(273, 54%, 75%)
CMYKcmyk(24.1%, 54.5%, 0%, 25.1%)
CIE-LABlab(47.75, 43.37, -45.61)
CIE-LCHlch(47.75, 62.94, 313.56°)
OKLaboklab(56.78% 0.0994 -0.1281)
OKLCHoklch(56.78% 0.162 307.8)
XYZxyz(24.4873, 16.5980, 51.1938)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157BF #85BF57
analogous
#5D57BF #9157BF #BF57B9
triadic
#9157BF #BF9157 #57BF91
tetradic
#9157BF #BF5D57 #85BF57 #57B9BF
square
#9157BF #BF5D57 #85BF57 #57B9BF
split-complementary
#9157BF #B9BF57 #57BF5D
monochromatic
#522B71 #723C9D #9157BF #AE83D0 #CBB0E1

Accessibility & contrast

On white

4.86
#9157BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9157BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9157BF
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157BF#FFFFFF#000000##FFFFFF
##9157BF1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366FC2
Deuteranopia (green-blind)
#4972BC
Tritanopia (blue-blind)
#8A6A83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9157bf;
/* rgb */ color: rgb(145, 87, 191);
/* oklch */ color: oklch(56.8% 0.162 307.8);
Tailwind
colors: {
  custom: {
    50: '#b488d3',
    500: '#9157bf',
    950: '#000000',
  },
}
SCSS
$custom: #9157bf;
$custom-light: #b488d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9157bf",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 273.462,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5678,
    "c": 0.16213,
    "h": 307.8
  },
  "luminance": 0.16598
}

Semantic roles & 50–950 ramp

primary
#9157BF
secondary
#B6CFA3
accent
#D5538C
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #9157BF

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

Preview Lab → · Contrast checker → · Palette generator →

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