#9158E4#9158E4

#9158E4 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.3% C 0.204 H 298.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9158E4
RGBrgb(145, 88, 228)
HSLhsl(264, 72%, 62%)
HSVhsv(264, 61%, 89%)
CMYKcmyk(36.4%, 61.4%, 0%, 10.6%)
CIE-LABlab(50.22, 51.84, -62.81)
CIE-LCHlch(50.22, 81.44, 309.53°)
OKLaboklab(59.31% 0.098 -0.1786)
OKLCHoklch(59.31% 0.204 298.8)
XYZxyz(29.1669, 18.6003, 75.4373)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158E4 #ABE458
analogous
#5865E4 #9158E4 #D758E4
triadic
#9158E4 #E49158 #58E491
tetradic
#9158E4 #E45865 #ABE458 #58E4D7
square
#9158E4 #E45865 #ABE458 #58E4D7
split-complementary
#9158E4 #E4D758 #65E458
monochromatic
#541BA7 #6E23DB #9158E4 #B48DED #D6C1F5

Accessibility & contrast

On white

4.45
#9158E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#9158E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158E4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158E4#FFFFFF#000000##000000
##9158E41.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#1B76E1
Tritanopia (blue-blind)
#7E7796
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9158e4;
/* rgb */ color: rgb(145, 88, 228);
/* oklch */ color: oklch(59.3% 0.204 298.8);
Tailwind
colors: {
  custom: {
    50: '#b68aed',
    500: '#9158e4',
    950: '#000000',
  },
}
SCSS
$custom: #9158e4;
$custom-light: #b68aed;
$custom-dark: #000000;
JSON
{
  "hex": "#9158e4",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 228
  },
  "hsl": {
    "h": 264.429,
    "s": 72.165,
    "l": 61.961
  },
  "oklch": {
    "l": 0.5931,
    "c": 0.20371,
    "h": 298.8
  },
  "luminance": 0.18601
}

Semantic roles & 50–950 ramp

primary
#9158E4
secondary
#D1E6B2
accent
#D41185
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9158E4

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

Preview Lab → · Contrast checker → · Palette generator →

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