#9158DA#9158DA

#9158DA is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.6% C 0.192 H 300.8°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9158DA
RGBrgb(145, 88, 218)
HSLhsl(266, 64%, 60%)
HSVhsv(266, 60%, 85%)
CMYKcmyk(33.5%, 59.6%, 0%, 14.5%)
CIE-LABlab(49.57, 49.34, -58.18)
CIE-LCHlch(49.57, 76.29, 310.30°)
OKLaboklab(58.63% 0.0985 -0.165)
OKLCHoklch(58.63% 0.192 300.8)
XYZxyz(27.8186, 18.0610, 68.3366)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158DA #A1DA58
analogous
#5860DA #9158DA #D258DA
triadic
#9158DA #DA9158 #58DA91
tetradic
#9158DA #DA5860 #A1DA58 #58DAD2
square
#9158DA #DA5860 #A1DA58 #58DAD2
split-complementary
#9158DA #DAD258 #60DA58
monochromatic
#552196 #712CC8 #9158DA #B28AE5 #D3BCF0

Accessibility & contrast

On white

4.55
#9158DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#9158DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158DA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158DA#FFFFFF#000000##000000
##9158DA1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0775DE
Deuteranopia (green-blind)
#2F75D7
Tritanopia (blue-blind)
#827391
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9158da;
/* rgb */ color: rgb(145, 88, 218);
/* oklch */ color: oklch(58.6% 0.192 300.8);
Tailwind
colors: {
  custom: {
    50: '#b68ae6',
    500: '#9158da',
    950: '#000000',
  },
}
SCSS
$custom: #9158da;
$custom-light: #b68ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#9158da",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 218
  },
  "hsl": {
    "h": 266.308,
    "s": 63.725,
    "l": 60
  },
  "oklch": {
    "l": 0.58634,
    "c": 0.19214,
    "h": 300.8
  },
  "luminance": 0.18061
}

Semantic roles & 50–950 ramp

primary
#9158DA
secondary
#CAE0AE
accent
#E7419E
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9158DA

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

Preview Lab → · Contrast checker → · Palette generator →

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