#9157E8#9157E8

#9157E8 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.4% C 0.210 H 298.1°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9157E8
RGBrgb(145, 87, 232)
HSLhsl(264, 76%, 63%)
HSVhsv(264, 63%, 91%)
CMYKcmyk(37.5%, 62.5%, 0%, 9%)
CIE-LABlab(50.29, 53.36, -64.94)
CIE-LCHlch(50.29, 84.06, 309.41°)
OKLaboklab(59.45% 0.0989 -0.1848)
OKLCHoklch(59.45% 0.21 298.1)
XYZxyz(29.6471, 18.6619, 78.3684)
Luminance0.1866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9157E8 #AEE857
analogous
#5766E8 #9157E8 #D957E8
triadic
#9157E8 #E89157 #57E891
tetradic
#9157E8 #E85766 #AEE857 #57E8D9
square
#9157E8 #E85766 #AEE857 #57E8D9
split-complementary
#9157E8 #E8D957 #66E857
monochromatic
#5318AD #6E21E1 #9157E8 #B48DEF #D7C3F7

Accessibility & contrast

On white

4.44
#9157E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#9157E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9157E8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9157E8#FFFFFF#000000##000000
##9157E81.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#0776E5
Tritanopia (blue-blind)
#7D7798
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9157e8;
/* rgb */ color: rgb(145, 87, 232);
/* oklch */ color: oklch(59.4% 0.210 298.1);
Tailwind
colors: {
  custom: {
    50: '#b789f0',
    500: '#9157e8',
    950: '#000000',
  },
}
SCSS
$custom: #9157e8;
$custom-light: #b789f0;
$custom-dark: #000000;
JSON
{
  "hex": "#9157e8",
  "rgb": {
    "r": 145,
    "g": 87,
    "b": 232
  },
  "hsl": {
    "h": 264,
    "s": 75.916,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59448,
    "c": 0.20964,
    "h": 298.1
  },
  "luminance": 0.18662
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9157E8

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

Preview Lab → · Contrast checker → · Palette generator →

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