#9157EB#9157EB

#9157EB is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.7% C 0.213 H 297.6°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9157EB
RGBrgb(145, 87, 235)
HSLhsl(264, 79%, 63%)
HSVhsv(264, 63%, 92%)
CMYKcmyk(38.3%, 63%, 0%, 7.8%)
CIE-LABlab(50.49, 54.12, -66.30)
CIE-LCHlch(50.49, 85.59, 309.22°)
OKLaboklab(59.66% 0.0987 -0.1888)
OKLCHoklch(59.66% 0.213 297.6)
XYZxyz(30.0768, 18.8338, 80.6318)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157EB #B1EB57
analogous
#5767EB #9157EB #DB57EB
triadic
#9157EB #EB9157 #57EB91
tetradic
#9157EB #EB5767 #B1EB57 #57EBDB
square
#9157EB #EB5767 #B1EB57 #57EBDB
split-complementary
#9157EB #EBDB57 #67EB57
monochromatic
#5315B2 #6D20E4 #9157EB #B58EF2 #D9C4F8

Accessibility & contrast

On white

4.41
#9157EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#9157EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157EB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157EB#FFFFFF#000000##000000
##9157EB1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#0076E8
Tritanopia (blue-blind)
#7B7899
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9157eb;
/* rgb */ color: rgb(145, 87, 235);
/* oklch */ color: oklch(59.7% 0.213 297.6);
Tailwind
colors: {
  custom: {
    50: '#b789f2',
    500: '#9157eb',
    950: '#000000',
  },
}
SCSS
$custom: #9157eb;
$custom-light: #b789f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9157eb",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 263.514,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59659,
    "c": 0.21307,
    "h": 297.6
  },
  "luminance": 0.18834
}

Semantic roles & 50–950 ramp

primary
#9157EB
secondary
#D5E9B4
accent
#DB0A89
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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