#9157EE#9157EE

#9157EE is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.9% C 0.216 H 297.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9157EE
RGBrgb(145, 87, 238)
HSLhsl(263, 82%, 64%)
HSVhsv(263, 63%, 93%)
CMYKcmyk(39.1%, 63.4%, 0%, 6.7%)
CIE-LABlab(50.70, 54.88, -67.66)
CIE-LCHlch(50.70, 87.11, 309.05°)
OKLaboklab(59.87% 0.0984 -0.1928)
OKLCHoklch(59.87% 0.216 297)
XYZxyz(30.5139, 19.0086, 82.9337)
Luminance0.1901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157EE #B4EE57
analogous
#5768EE #9157EE #DC57EE
triadic
#9157EE #EE9157 #57EE91
tetradic
#9157EE #EE5768 #B4EE57 #57EEDC
square
#9157EE #EE5768 #B4EE57 #57EEDC
split-complementary
#9157EE #EEDC57 #68EE57
monochromatic
#5213B8 #6D1FE8 #9157EE #B58FF4 #DAC6F9

Accessibility & contrast

On white

4.37
#9157EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#9157EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157EE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157EE#FFFFFF#000000##000000
##9157EE1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0077EB
Tritanopia (blue-blind)
#7A799B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9157ee;
/* rgb */ color: rgb(145, 87, 238);
/* oklch */ color: oklch(59.9% 0.216 297.0);
Tailwind
colors: {
  custom: {
    50: '#b789f4',
    500: '#9157ee',
    950: '#000000',
  },
}
SCSS
$custom: #9157ee;
$custom-light: #b789f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9157ee",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 263.046,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.59872,
    "c": 0.21649,
    "h": 297
  },
  "luminance": 0.19009
}

Semantic roles & 50–950 ramp

primary
#9157EE
secondary
#D7EBB6
accent
#DE088C
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #9157EE

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

Preview Lab → · Contrast checker → · Palette generator →

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