#9158EC#9158EC

#9158EC is a mid, highly saturated violet. Relative luminance 0.191; OKLCH L 59.9% C 0.213 H 297.3°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#9158EC
RGBrgb(145, 88, 236)
HSLhsl(263, 80%, 64%)
HSVhsv(263, 63%, 93%)
CMYKcmyk(38.6%, 62.7%, 0%, 7.5%)
CIE-LABlab(50.75, 53.85, -66.45)
CIE-LCHlch(50.75, 85.53, 309.03°)
OKLaboklab(59.87% 0.0975 -0.1893)
OKLCHoklch(59.87% 0.213 297.3)
XYZxyz(30.3032, 19.0548, 81.4220)
Luminance0.1905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158EC #B3EC58
analogous
#5869EC #9158EC #DB58EC
triadic
#9158EC #EC9158 #58EC91
tetradic
#9158EC #EC5869 #B3EC58 #58ECDB
square
#9158EC #EC5869 #B3EC58 #58ECDB
split-complementary
#9158EC #ECDB58 #69EC58
monochromatic
#5215B5 #6D21E6 #9158EC #B58FF2 #D9C6F9

Accessibility & contrast

On white

4.36
#9158EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#9158EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158EC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158EC#FFFFFF#000000##000000
##9158EC1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9158ec;
/* rgb */ color: rgb(145, 88, 236);
/* oklch */ color: oklch(59.9% 0.213 297.3);
Tailwind
colors: {
  custom: {
    50: '#b78af3',
    500: '#9158ec',
    950: '#000000',
  },
}
SCSS
$custom: #9158ec;
$custom-light: #b78af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9158ec",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 236
  },
  "hsl": {
    "h": 263.108,
    "s": 79.57,
    "l": 63.529
  },
  "oklch": {
    "l": 0.59868,
    "c": 0.2129,
    "h": 297.3
  },
  "luminance": 0.19055
}

Semantic roles & 50–950 ramp

primary
#9158EC
secondary
#D6EAB6
accent
#DC0A8B
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9158EC

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

Preview Lab → · Contrast checker → · Palette generator →

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