#9157E9#9157E9

#9157E9 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.5% C 0.211 H 298.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9157E9
RGBrgb(145, 87, 233)
HSLhsl(264, 77%, 63%)
HSVhsv(264, 63%, 91%)
CMYKcmyk(37.8%, 62.7%, 0%, 8.6%)
CIE-LABlab(50.36, 53.61, -65.40)
CIE-LCHlch(50.36, 84.57, 309.35°)
OKLaboklab(59.52% 0.0988 -0.1862)
OKLCHoklch(59.52% 0.211 298)
XYZxyz(29.7895, 18.7189, 79.1186)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157E9 #AFE957
analogous
#5766E9 #9157E9 #DA57E9
triadic
#9157E9 #E99157 #57E991
tetradic
#9157E9 #E95766 #AFE957 #57E9DA
square
#9157E9 #E95766 #AFE957 #57E9DA
split-complementary
#9157E9 #E9DA57 #66E957
monochromatic
#5317AF #6E21E2 #9157E9 #B48DF0 #D8C3F7

Accessibility & contrast

On white

4.43
#9157E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#9157E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157E9
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157E9#FFFFFF#000000##000000
##9157E91.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EE
Deuteranopia (green-blind)
#0176E6
Tritanopia (blue-blind)
#7C7898
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9157e9;
/* rgb */ color: rgb(145, 87, 233);
/* oklch */ color: oklch(59.5% 0.211 298.0);
Tailwind
colors: {
  custom: {
    50: '#b789f1',
    500: '#9157e9',
    950: '#000000',
  },
}
SCSS
$custom: #9157e9;
$custom-light: #b789f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9157e9",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 233
  },
  "hsl": {
    "h": 263.836,
    "s": 76.842,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59518,
    "c": 0.21078,
    "h": 298
  },
  "luminance": 0.18719
}

Semantic roles & 50–950 ramp

primary
#9157E9
secondary
#D3E8B3
accent
#D90C88
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9157E9

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

Preview Lab → · Contrast checker → · Palette generator →

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