#9158DD#9158DD

#9158DD is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.8% C 0.196 H 300.2°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#9158DD
RGBrgb(145, 88, 221)
HSLhsl(266, 66%, 61%)
HSVhsv(266, 60%, 87%)
CMYKcmyk(34.4%, 60.2%, 0%, 13.3%)
CIE-LABlab(49.76, 50.09, -59.58)
CIE-LCHlch(49.76, 77.84, 310.05°)
OKLaboklab(58.83% 0.0984 -0.1691)
OKLCHoklch(58.83% 0.196 300.2)
XYZxyz(28.2148, 18.2194, 70.4228)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158DD #A4DD58
analogous
#5861DD #9158DD #D358DD
triadic
#9158DD #DD9158 #58DD91
tetradic
#9158DD #DD5861 #A4DD58 #58DDD3
square
#9158DD #DD5861 #A4DD58 #58DDD3
split-complementary
#9158DD #DDD358 #61DD58
monochromatic
#54209B #702ACE #9158DD #B28BE7 #D4BEF2

Accessibility & contrast

On white

4.52
#9158DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#9158DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158DD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158DD#FFFFFF#000000##000000
##9158DD1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#2A75DA
Tritanopia (blue-blind)
#817492
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9158dd;
/* rgb */ color: rgb(145, 88, 221);
/* oklch */ color: oklch(58.8% 0.196 300.2);
Tailwind
colors: {
  custom: {
    50: '#b68ae8',
    500: '#9158dd',
    950: '#000000',
  },
}
SCSS
$custom: #9158dd;
$custom-light: #b68ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#9158dd",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 221
  },
  "hsl": {
    "h": 265.714,
    "s": 66.169,
    "l": 60.588
  },
  "oklch": {
    "l": 0.58834,
    "c": 0.19562,
    "h": 300.2
  },
  "luminance": 0.1822
}

Semantic roles & 50–950 ramp

primary
#9158DD
secondary
#CCE2AF
accent
#CE1780
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9158DD

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

Preview Lab → · Contrast checker → · Palette generator →

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