#9158CA#9158CA

#9158CA is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.173 H 304.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9158CA
RGBrgb(145, 88, 202)
HSLhsl(270, 52%, 57%)
HSVhsv(270, 56%, 79%)
CMYKcmyk(28.2%, 56.4%, 0%, 20.8%)
CIE-LABlab(48.59, 45.44, -50.61)
CIE-LCHlch(48.59, 68.02, 311.92°)
OKLaboklab(57.6% 0.0985 -0.1428)
OKLCHoklch(57.6% 0.173 304.6)
XYZxyz(25.8251, 17.2636, 57.8374)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158CA #91CA58
analogous
#5858CA #9158CA #CA58CA
triadic
#9158CA #CA9158 #58CA91
tetradic
#9158CA #CA5858 #91CA58 #58CACA
square
#9158CA #CA5858 #91CA58 #58CACA
split-complementary
#9158CA #CACA58 #58CA58
monochromatic
#54287F #7237AE #9158CA #B086D9 #CEB5E7

Accessibility & contrast

On white

4.72
#9158CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#9158CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158CA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158CA#FFFFFF#000000##FFFFFF
##9158CA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C72CE
Deuteranopia (green-blind)
#4173C7
Tritanopia (blue-blind)
#876E89
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9158ca;
/* rgb */ color: rgb(145, 88, 202);
/* oklch */ color: oklch(57.6% 0.173 304.6);
Tailwind
colors: {
  custom: {
    50: '#b489db',
    500: '#9158ca',
    950: '#000000',
  },
}
SCSS
$custom: #9158ca;
$custom-light: #b489db;
$custom-dark: #000000;
JSON
{
  "hex": "#9158ca",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 202
  },
  "hsl": {
    "h": 270,
    "s": 51.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.57603,
    "c": 0.17346,
    "h": 304.6
  },
  "luminance": 0.17263
}

Semantic roles & 50–950 ramp

primary
#9158CA
secondary
#BFD6A8
accent
#DB4D94
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9158CA

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

Preview Lab → · Contrast checker → · Palette generator →

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