#9157DB#9157DB

#9157DB is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.6% C 0.195 H 300.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9157DB
RGBrgb(145, 87, 219)
HSLhsl(266, 65%, 60%)
HSVhsv(266, 60%, 86%)
CMYKcmyk(33.8%, 60.3%, 0%, 14.1%)
CIE-LABlab(49.44, 50.12, -58.97)
CIE-LCHlch(49.44, 77.39, 310.36°)
OKLaboklab(58.56% 0.0996 -0.1673)
OKLCHoklch(58.56% 0.195 300.8)
XYZxyz(27.8684, 17.9504, 69.0007)
Luminance0.1795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157DB #A1DB57
analogous
#575FDB #9157DB #D357DB
triadic
#9157DB #DB9157 #57DB91
tetradic
#9157DB #DB575F #A1DB57 #57DBD3
square
#9157DB #DB575F #A1DB57 #57DBD3
split-complementary
#9157DB #DBD357 #5FDB57
monochromatic
#552097 #712BCA #9157DB #B289E6 #D3BCF1

Accessibility & contrast

On white

4.57
#9157DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#9157DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157DB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157DB#FFFFFF#000000##000000
##9157DB1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#2B75D8
Tritanopia (blue-blind)
#827391
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9157db;
/* rgb */ color: rgb(145, 87, 219);
/* oklch */ color: oklch(58.6% 0.195 300.8);
Tailwind
colors: {
  custom: {
    50: '#b689e7',
    500: '#9157db',
    950: '#000000',
  },
}
SCSS
$custom: #9157db;
$custom-light: #b689e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9157db",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 266.364,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.58556,
    "c": 0.19471,
    "h": 300.8
  },
  "luminance": 0.17951
}

Semantic roles & 50–950 ramp

primary
#9157DB
secondary
#CAE0AD
accent
#E8409E
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9157DB

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

Preview Lab → · Contrast checker → · Palette generator →

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