#9159EC#9159EC

#9159EC is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.0% C 0.212 H 297.1°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9159EC
RGBrgb(145, 89, 236)
HSLhsl(263, 79%, 64%)
HSVhsv(263, 62%, 93%)
CMYKcmyk(38.6%, 62.3%, 0%, 7.5%)
CIE-LABlab(50.94, 53.34, -66.13)
CIE-LCHlch(50.94, 84.96, 308.89°)
OKLaboklab(60.01% 0.0964 -0.1884)
OKLCHoklch(60.01% 0.212 297.1)
XYZxyz(30.3859, 19.2201, 81.4496)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9159EC #B4EC59
analogous
#596AEC #9159EC #DA59EC
triadic
#9159EC #EC9159 #59EC91
tetradic
#9159EC #EC596A #B4EC59 #59ECDA
square
#9159EC #EC596A #B4EC59 #59ECDA
split-complementary
#9159EC #ECDA59 #6AEC59
monochromatic
#5215B6 #6D22E6 #9159EC #B590F2 #DAC7F9

Accessibility & contrast

On white

4.34
#9159EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#9159EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9159EC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9159EC#FFFFFF#000000##000000
##9159EC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF1
Deuteranopia (green-blind)
#0078E9
Tritanopia (blue-blind)
#7B7A9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9159ec;
/* rgb */ color: rgb(145, 89, 236);
/* oklch */ color: oklch(60.0% 0.212 297.1);
Tailwind
colors: {
  custom: {
    50: '#b78bf3',
    500: '#9159ec',
    950: '#000000',
  },
}
SCSS
$custom: #9159ec;
$custom-light: #b78bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9159ec",
  "rgb": {
    "r": 145,
    "g": 89,
    "b": 236
  },
  "hsl": {
    "h": 262.857,
    "s": 79.459,
    "l": 63.725
  },
  "oklch": {
    "l": 0.60007,
    "c": 0.2116,
    "h": 297.1
  },
  "luminance": 0.19221
}

Semantic roles & 50–950 ramp

primary
#9159EC
secondary
#D7EAB6
accent
#DC0A8C
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9159EC

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

Preview Lab → · Contrast checker → · Palette generator →

#9159EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva