#9158BB#9158BB

#9158BB is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.7% C 0.156 H 308.8°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#9158BB
RGBrgb(145, 88, 187)
HSLhsl(275, 42%, 54%)
HSVhsv(275, 53%, 73%)
CMYKcmyk(22.5%, 52.9%, 0%, 26.7%)
CIE-LABlab(47.74, 41.90, -43.31)
CIE-LCHlch(47.74, 60.26, 314.05°)
OKLaboklab(56.7% 0.0978 -0.1214)
OKLCHoklch(56.7% 0.156 308.8)
XYZxyz(24.1347, 16.5874, 48.9343)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158BB #82BB58
analogous
#6058BB #9158BB #BB58B4
triadic
#9158BB #BB9158 #58BB91
tetradic
#9158BB #BB6058 #82BB58 #58B4BB
square
#9158BB #BB6058 #82BB58 #58B4BB
split-complementary
#9158BB #B4BB58 #58BB60
monochromatic
#512C6C #723E98 #9158BB #AE83CD #CAAFDE

Accessibility & contrast

On white

4.86
#9158BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#9158BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158BB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158BB#FFFFFF#000000##FFFFFF
##9158BB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6FBE
Deuteranopia (green-blind)
#4D72B9
Tritanopia (blue-blind)
#8B6981
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #9158bb;
/* rgb */ color: rgb(145, 88, 187);
/* oklch */ color: oklch(56.7% 0.156 308.8);
Tailwind
colors: {
  custom: {
    50: '#b489d0',
    500: '#9158bb',
    950: '#000000',
  },
}
SCSS
$custom: #9158bb;
$custom-light: #b489d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9158bb",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 274.545,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56698,
    "c": 0.15586,
    "h": 308.8
  },
  "luminance": 0.16587
}

Semantic roles & 50–950 ramp

primary
#9158BB
secondary
#B4CDA2
accent
#D2568B
background
#FBF8FC
surface
#F6F0F9
border
#D0CBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #9158BB

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

Preview Lab → · Contrast checker → · Palette generator →

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