#9158EE#9158EE

#9158EE is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.0% C 0.215 H 296.9°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#9158EE
RGBrgb(145, 88, 238)
HSLhsl(263, 82%, 64%)
HSVhsv(263, 63%, 93%)
CMYKcmyk(39.1%, 63%, 0%, 6.7%)
CIE-LABlab(50.89, 54.36, -67.35)
CIE-LCHlch(50.89, 86.55, 308.91°)
OKLaboklab(60.01% 0.0973 -0.1919)
OKLCHoklch(60.01% 0.215 296.9)
XYZxyz(30.5954, 19.1717, 82.9609)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9158EE #B5EE58
analogous
#586AEE #9158EE #DC58EE
triadic
#9158EE #EE9158 #58EE91
tetradic
#9158EE #EE586A #B5EE58 #58EEDC
square
#9158EE #EE586A #B5EE58 #58EEDC
split-complementary
#9158EE #EEDC58 #6AEE58
monochromatic
#5213B9 #6C20E8 #9158EE #B690F4 #DAC7F9

Accessibility & contrast

On white

4.34
#9158EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#9158EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9158EE
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9158EE#FFFFFF#000000##000000
##9158EE1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF3
Deuteranopia (green-blind)
#0077EB
Tritanopia (blue-blind)
#7A7A9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9158ee;
/* rgb */ color: rgb(145, 88, 238);
/* oklch */ color: oklch(60.0% 0.215 296.9);
Tailwind
colors: {
  custom: {
    50: '#b78af4',
    500: '#9158ee',
    950: '#000000',
  },
}
SCSS
$custom: #9158ee;
$custom-light: #b78af4;
$custom-dark: #000000;
JSON
{
  "hex": "#9158ee",
  "rgb": {
    "r": 145,
    "g": 88,
    "b": 238
  },
  "hsl": {
    "h": 262.8,
    "s": 81.522,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6001,
    "c": 0.21518,
    "h": 296.9
  },
  "luminance": 0.19172
}

Semantic roles & 50–950 ramp

primary
#9158EE
secondary
#D7EBB7
accent
#DE088C
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #9158EE

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

Preview Lab → · Contrast checker → · Palette generator →

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