#9158EB#9158EB

#9158EB is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.8% C 0.212 H 297.4°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#9158EB
RGBrgb(145, 88, 235)
HSLhsl(263, 79%, 63%)
HSVhsv(263, 63%, 92%)
CMYKcmyk(38.3%, 62.6%, 0%, 7.8%)
CIE-LABlab(50.68, 53.60, -65.99)
CIE-LCHlch(50.68, 85.02, 309.08°)
OKLaboklab(59.8% 0.0976 -0.1879)
OKLCHoklch(59.8% 0.212 297.4)
XYZxyz(30.1583, 18.9969, 80.6590)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158EB #B2EB58
analogous
#5868EB #9158EB #DA58EB
triadic
#9158EB #EB9158 #58EB91
tetradic
#9158EB #EB5868 #B2EB58 #58EBDA
square
#9158EB #EB5868 #B2EB58 #58EBDA
split-complementary
#9158EB #EBDA58 #68EB58
monochromatic
#5315B3 #6D21E4 #9158EB #B58FF2 #D9C5F8

Accessibility & contrast

On white

4.38
#9158EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#9158EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158EB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158EB#FFFFFF#000000##000000
##9158EB1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F0
Deuteranopia (green-blind)
#0077E8
Tritanopia (blue-blind)
#7B799A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9158eb;
/* rgb */ color: rgb(145, 88, 235);
/* oklch */ color: oklch(59.8% 0.212 297.4);
Tailwind
colors: {
  custom: {
    50: '#b78af2',
    500: '#9158eb',
    950: '#000000',
  },
}
SCSS
$custom: #9158eb;
$custom-light: #b78af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9158eb",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 263.265,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59797,
    "c": 0.21176,
    "h": 297.4
  },
  "luminance": 0.18997
}

Semantic roles & 50–950 ramp

primary
#9158EB
secondary
#D5EAB5
accent
#DB0B8A
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9158EB

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

Preview Lab → · Contrast checker → · Palette generator →

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