#9158DB#9158DB

#9158DB is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.7% C 0.193 H 300.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9158DB
RGBrgb(145, 88, 219)
HSLhsl(266, 65%, 60%)
HSVhsv(266, 60%, 86%)
CMYKcmyk(33.8%, 59.8%, 0%, 14.1%)
CIE-LABlab(49.63, 49.59, -58.65)
CIE-LCHlch(49.63, 76.81, 310.22°)
OKLaboklab(58.7% 0.0984 -0.1664)
OKLCHoklch(58.7% 0.193 300.6)
XYZxyz(27.9499, 18.1135, 69.0278)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158DB #A2DB58
analogous
#5860DB #9158DB #D358DB
triadic
#9158DB #DB9158 #58DB91
tetradic
#9158DB #DB5860 #A2DB58 #58DBD3
square
#9158DB #DB5860 #A2DB58 #58DBD3
split-complementary
#9158DB #DBD358 #60DB58
monochromatic
#552198 #712CCA #9158DB #B28AE6 #D3BDF1

Accessibility & contrast

On white

4.54
#9158DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#9158DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158DB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158DB#FFFFFF#000000##000000
##9158DB1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0275DF
Deuteranopia (green-blind)
#2D75D8
Tritanopia (blue-blind)
#817491
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9158db;
/* rgb */ color: rgb(145, 88, 219);
/* oklch */ color: oklch(58.7% 0.193 300.6);
Tailwind
colors: {
  custom: {
    50: '#b68ae7',
    500: '#9158db',
    950: '#000000',
  },
}
SCSS
$custom: #9158db;
$custom-light: #b68ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#9158db",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 219
  },
  "hsl": {
    "h": 266.107,
    "s": 64.532,
    "l": 60.196
  },
  "oklch": {
    "l": 0.587,
    "c": 0.1933,
    "h": 300.6
  },
  "luminance": 0.18114
}

Semantic roles & 50–950 ramp

primary
#9158DB
secondary
#CBE1AE
accent
#CC197E
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9158DB

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

Preview Lab → · Contrast checker → · Palette generator →

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