#9158E6#9158E6

#9158E6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.4% C 0.206 H 298.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9158E6
RGBrgb(145, 88, 230)
HSLhsl(264, 74%, 62%)
HSVhsv(264, 62%, 90%)
CMYKcmyk(37%, 61.7%, 0%, 9.8%)
CIE-LABlab(50.35, 52.34, -63.72)
CIE-LCHlch(50.35, 82.46, 309.40°)
OKLaboklab(59.45% 0.0979 -0.1813)
OKLCHoklch(59.45% 0.206 298.4)
XYZxyz(29.4461, 18.7120, 76.9080)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158E6 #ADE658
analogous
#5866E6 #9158E6 #D858E6
triadic
#9158E6 #E69158 #58E691
tetradic
#9158E6 #E65866 #ADE658 #58E6D8
square
#9158E6 #E65866 #ADE658 #58E6D8
split-complementary
#9158E6 #E6D858 #66E658
monochromatic
#5419AA #6E23DE #9158E6 #B48DEE #D7C2F6

Accessibility & contrast

On white

4.43
#9158E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#9158E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158E6
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158E6#FFFFFF#000000##000000
##9158E61.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EA
Deuteranopia (green-blind)
#1576E3
Tritanopia (blue-blind)
#7D7797
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9158e6;
/* rgb */ color: rgb(145, 88, 230);
/* oklch */ color: oklch(59.4% 0.206 298.4);
Tailwind
colors: {
  custom: {
    50: '#b78aef',
    500: '#9158e6',
    950: '#000000',
  },
}
SCSS
$custom: #9158e6;
$custom-light: #b78aef;
$custom-dark: #000000;
JSON
{
  "hex": "#9158e6",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 230
  },
  "hsl": {
    "h": 264.085,
    "s": 73.958,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59448,
    "c": 0.20602,
    "h": 298.4
  },
  "luminance": 0.18712
}

Semantic roles & 50–950 ramp

primary
#9158E6
secondary
#D2E7B3
accent
#D60F86
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9158E6

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

Preview Lab → · Contrast checker → · Palette generator →

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