#9158BC#9158BC

#9158BC is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.8% C 0.157 H 308.5°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#9158BC
RGBrgb(145, 88, 188)
HSLhsl(274, 43%, 54%)
HSVhsv(274, 53%, 74%)
CMYKcmyk(22.9%, 53.2%, 0%, 26.3%)
CIE-LABlab(47.79, 42.13, -43.80)
CIE-LCHlch(47.79, 60.77, 313.89°)
OKLaboklab(56.76% 0.0978 -0.1228)
OKLCHoklch(56.76% 0.157 308.5)
XYZxyz(24.2421, 16.6304, 49.5001)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158BC #83BC58
analogous
#5F58BC #9158BC #BC58B5
triadic
#9158BC #BC9158 #58BC91
tetradic
#9158BC #BC5F58 #83BC58 #58B5BC
square
#9158BC #BC5F58 #83BC58 #58B5BC
split-complementary
#9158BC #B5BC58 #58BC5F
monochromatic
#512C6E #723E99 #9158BC #AE84CE #CBAFDF

Accessibility & contrast

On white

4.85
#9158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#9158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158BC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158BC#FFFFFF#000000##FFFFFF
##9158BC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6FBF
Deuteranopia (green-blind)
#4D72BA
Tritanopia (blue-blind)
#8B6A82
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9158bc;
/* rgb */ color: rgb(145, 88, 188);
/* oklch */ color: oklch(56.8% 0.157 308.5);
Tailwind
colors: {
  custom: {
    50: '#b489d1',
    500: '#9158bc',
    950: '#000000',
  },
}
SCSS
$custom: #9158bc;
$custom-light: #b489d1;
$custom-dark: #000000;
JSON
{
  "hex": "#9158bc",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 274.2,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56756,
    "c": 0.15703,
    "h": 308.5
  },
  "luminance": 0.1663
}

Semantic roles & 50–950 ramp

primary
#9158BC
secondary
#B5CDA3
accent
#D3558B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #9158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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