#9158E8#9158E8

#9158E8 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.6% C 0.208 H 298.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9158E8
RGBrgb(145, 88, 232)
HSLhsl(264, 76%, 63%)
HSVhsv(264, 62%, 91%)
CMYKcmyk(37.5%, 62.1%, 0%, 9%)
CIE-LABlab(50.48, 52.84, -64.63)
CIE-LCHlch(50.48, 83.48, 309.27°)
OKLaboklab(59.59% 0.0978 -0.1839)
OKLCHoklch(59.59% 0.208 298)
XYZxyz(29.7286, 18.8250, 78.3956)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158E8 #AFE858
analogous
#5867E8 #9158E8 #D958E8
triadic
#9158E8 #E89158 #58E891
tetradic
#9158E8 #E85867 #AFE858 #58E8D9
square
#9158E8 #E85867 #AFE858 #58E8D9
split-complementary
#9158E8 #E8D958 #67E858
monochromatic
#5318AE #6E22E1 #9158E8 #B48EEF #D8C4F7

Accessibility & contrast

On white

4.41
#9158E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#9158E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158E8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158E8#FFFFFF#000000##000000
##9158E81.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#0D77E5
Tritanopia (blue-blind)
#7D7898
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9158e8;
/* rgb */ color: rgb(145, 88, 232);
/* oklch */ color: oklch(59.6% 0.208 298.0);
Tailwind
colors: {
  custom: {
    50: '#b78af0',
    500: '#9158e8',
    950: '#000000',
  },
}
SCSS
$custom: #9158e8;
$custom-light: #b78af0;
$custom-dark: #000000;
JSON
{
  "hex": "#9158e8",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 263.75,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59587,
    "c": 0.20831,
    "h": 298
  },
  "luminance": 0.18825
}

Semantic roles & 50–950 ramp

primary
#9158E8
secondary
#D3E8B4
accent
#D80E88
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9158E8

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

Preview Lab → · Contrast checker → · Palette generator →

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