#9158CD#9158CD

#9158CD is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.8% C 0.177 H 303.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9158CD
RGBrgb(145, 88, 205)
HSLhsl(269, 54%, 57%)
HSVhsv(269, 57%, 80%)
CMYKcmyk(29.3%, 57.1%, 0%, 19.6%)
CIE-LABlab(48.77, 46.16, -52.05)
CIE-LCHlch(48.77, 69.57, 311.57°)
OKLaboklab(57.79% 0.0986 -0.147)
OKLCHoklch(57.79% 0.177 303.8)
XYZxyz(26.1838, 17.4070, 59.7262)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158CD #94CD58
analogous
#5859CD #9158CD #CC58CD
triadic
#9158CD #CD9158 #58CD91
tetradic
#9158CD #CD5859 #94CD58 #58CDCC
square
#9158CD #CD5859 #94CD58 #58CDCC
split-complementary
#9158CD #CDCC58 #59CD58
monochromatic
#542783 #7235B2 #9158CD #B087DB #CFB6E9

Accessibility & contrast

On white

4.69
#9158CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#9158CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158CD
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158CD#FFFFFF#000000##FFFFFF
##9158CD1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2872D1
Deuteranopia (green-blind)
#3E74CA
Tritanopia (blue-blind)
#866F8A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9158cd;
/* rgb */ color: rgb(145, 88, 205);
/* oklch */ color: oklch(57.8% 0.177 303.8);
Tailwind
colors: {
  custom: {
    50: '#b589dd',
    500: '#9158cd',
    950: '#000000',
  },
}
SCSS
$custom: #9158cd;
$custom-light: #b589dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9158cd",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 205
  },
  "hsl": {
    "h": 269.231,
    "s": 53.917,
    "l": 57.451
  },
  "oklch": {
    "l": 0.57791,
    "c": 0.17697,
    "h": 303.8
  },
  "luminance": 0.17407
}

Semantic roles & 50–950 ramp

primary
#9158CD
secondary
#C1D8A9
accent
#DD4B96
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9158CD

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

Preview Lab → · Contrast checker → · Palette generator →

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