#9158CE#9158CE

#9158CE is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.178 H 303.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9158CE
RGBrgb(145, 88, 206)
HSLhsl(269, 55%, 58%)
HSVhsv(269, 57%, 81%)
CMYKcmyk(29.6%, 57.3%, 0%, 19.2%)
CIE-LABlab(48.83, 46.40, -52.53)
CIE-LCHlch(48.83, 70.09, 311.46°)
OKLaboklab(57.86% 0.0986 -0.1484)
OKLCHoklch(57.86% 0.178 303.6)
XYZxyz(26.3049, 17.4555, 60.3640)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158CE #95CE58
analogous
#585ACE #9158CE #CC58CE
triadic
#9158CE #CE9158 #58CE91
tetradic
#9158CE #CE585A #95CE58 #58CECC
square
#9158CE #CE585A #95CE58 #58CECC
split-complementary
#9158CE #CECC58 #5ACE58
monochromatic
#542785 #7235B4 #9158CE #B087DC #CFB7EA

Accessibility & contrast

On white

4.68
#9158CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#9158CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158CE
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158CE#FFFFFF#000000##FFFFFF
##9158CE1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2673D2
Deuteranopia (green-blind)
#3D74CB
Tritanopia (blue-blind)
#866F8B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9158ce;
/* rgb */ color: rgb(145, 88, 206);
/* oklch */ color: oklch(57.9% 0.178 303.6);
Tailwind
colors: {
  custom: {
    50: '#b589de',
    500: '#9158ce',
    950: '#000000',
  },
}
SCSS
$custom: #9158ce;
$custom-light: #b589de;
$custom-dark: #000000;
JSON
{
  "hex": "#9158ce",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 206
  },
  "hsl": {
    "h": 268.983,
    "s": 54.63,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57855,
    "c": 0.17814,
    "h": 303.6
  },
  "luminance": 0.17455
}

Semantic roles & 50–950 ramp

primary
#9158CE
secondary
#C2D9A9
accent
#DE4A96
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9158CE

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

Preview Lab → · Contrast checker → · Palette generator →

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