#9159EF#9159EF

#9159EF is a mid, highly saturated violet. Relative luminance 0.194; OKLCH L 60.2% C 0.215 H 296.6°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#9159EF
RGBrgb(145, 89, 239)
HSLhsl(262, 82%, 64%)
HSVhsv(262, 63%, 94%)
CMYKcmyk(39.3%, 62.8%, 0%, 6.3%)
CIE-LABlab(51.15, 54.10, -67.49)
CIE-LCHlch(51.15, 86.49, 308.72°)
OKLaboklab(60.22% 0.0962 -0.1923)
OKLCHoklch(60.22% 0.215 296.6)
XYZxyz(30.8254, 19.3959, 83.7643)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9159EF #B7EF59
analogous
#596CEF #9159EF #DC59EF
triadic
#9159EF #EF9159 #59EF91
tetradic
#9159EF #EF596C #B7EF59 #59EFDC
square
#9159EF #EF596C #B7EF59 #59EFDC
split-complementary
#9159EF #EFDC59 #6CEF59
monochromatic
#5112BC #6C21EA #9159EF #B691F4 #DBC9FA

Accessibility & contrast

On white

4.30
#9159EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#9159EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9159EF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9159EF#FFFFFF#000000##000000
##9159EF1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#0078EC
Tritanopia (blue-blind)
#7A7B9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9159ef;
/* rgb */ color: rgb(145, 89, 239);
/* oklch */ color: oklch(60.2% 0.215 296.6);
Tailwind
colors: {
  custom: {
    50: '#b78bf5',
    500: '#9159ef',
    950: '#000000',
  },
}
SCSS
$custom: #9159ef;
$custom-light: #b78bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9159ef",
  "rgb": {
    "r": 145,
    "g": 89,
    "b": 239
  },
  "hsl": {
    "h": 262.4,
    "s": 82.418,
    "l": 64.314
  },
  "oklch": {
    "l": 0.60219,
    "c": 0.21504,
    "h": 296.6
  },
  "luminance": 0.19396
}

Semantic roles & 50–950 ramp

primary
#9159EF
secondary
#D8ECB8
accent
#DF078E
background
#FBF8FF
surface
#F7F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #9159EF

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

Preview Lab → · Contrast checker → · Palette generator →

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