#9158CF#9158CF

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

Color values

HEX#9158CF
RGBrgb(145, 88, 207)
HSLhsl(269, 55%, 58%)
HSVhsv(269, 57%, 81%)
CMYKcmyk(30%, 57.5%, 0%, 18.8%)
CIE-LABlab(48.89, 46.65, -53.00)
CIE-LCHlch(48.89, 70.61, 311.35°)
OKLaboklab(57.92% 0.0986 -0.1498)
OKLCHoklch(57.92% 0.179 303.4)
XYZxyz(26.4267, 17.5042, 61.0058)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158CF #96CF58
analogous
#585BCF #9158CF #CC58CF
triadic
#9158CF #CF9158 #58CF91
tetradic
#9158CF #CF585B #96CF58 #58CFCC
square
#9158CF #CF585B #96CF58 #58CFCC
split-complementary
#9158CF #CFCC58 #5BCF58
monochromatic
#542786 #7234B6 #9158CF #B088DD #D0B7EA

Accessibility & contrast

On white

4.67
#9158CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#9158CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9158CF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158CF#FFFFFF#000000##FFFFFF
##9158CF1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2473D3
Deuteranopia (green-blind)
#3C74CC
Tritanopia (blue-blind)
#85708B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #9158cf;
/* rgb */ color: rgb(145, 88, 207);
/* oklch */ color: oklch(57.9% 0.179 303.4);
Tailwind
colors: {
  custom: {
    50: '#b589de',
    500: '#9158cf',
    950: '#000000',
  },
}
SCSS
$custom: #9158cf;
$custom-light: #b589de;
$custom-dark: #000000;
JSON
{
  "hex": "#9158cf",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 268.739,
    "s": 55.349,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57918,
    "c": 0.1793,
    "h": 303.4
  },
  "luminance": 0.17504
}

Semantic roles & 50–950 ramp

primary
#9158CF
secondary
#C2D9AA
accent
#DF4997
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #9158CF

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

Preview Lab → · Contrast checker → · Palette generator →

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