#9158BF#9158BF

#9158BF is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.161 H 307.6°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9158BF
RGBrgb(145, 88, 191)
HSLhsl(273, 45%, 55%)
HSVhsv(273, 54%, 75%)
CMYKcmyk(24.1%, 53.9%, 0%, 25.1%)
CIE-LABlab(47.96, 42.83, -45.27)
CIE-LCHlch(47.96, 62.32, 313.41°)
OKLaboklab(56.93% 0.098 -0.1272)
OKLCHoklch(56.93% 0.161 307.6)
XYZxyz(24.5689, 16.7611, 51.2210)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158BF #86BF58
analogous
#5E58BF #9158BF #BF58BA
triadic
#9158BF #BF9158 #58BF91
tetradic
#9158BF #BF5E58 #86BF58 #58BABF
square
#9158BF #BF5E58 #86BF58 #58BABF
split-complementary
#9158BF #BABF58 #58BF5E
monochromatic
#522B71 #723C9D #9158BF #AE84D0 #CBB0E1

Accessibility & contrast

On white

4.83
#9158BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#9158BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9158BF
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158BF#FFFFFF#000000##FFFFFF
##9158BF1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3870C2
Deuteranopia (green-blind)
#4A72BC
Tritanopia (blue-blind)
#8A6A83
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9158bf;
/* rgb */ color: rgb(145, 88, 191);
/* oklch */ color: oklch(56.9% 0.161 307.6);
Tailwind
colors: {
  custom: {
    50: '#b489d3',
    500: '#9158bf',
    950: '#000000',
  },
}
SCSS
$custom: #9158bf;
$custom-light: #b489d3;
$custom-dark: #000000;
JSON
{
  "hex": "#9158bf",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 273.204,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56933,
    "c": 0.16055,
    "h": 307.6
  },
  "luminance": 0.16761
}

Semantic roles & 50–950 ramp

primary
#9158BF
secondary
#B7CFA4
accent
#D4548D
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #9158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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