#9A51EE#9A51EE

#9A51EE is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 60.0% C 0.225 H 301.2°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#9A51EE
RGBrgb(154, 81, 238)
HSLhsl(268, 82%, 63%)
HSVhsv(268, 66%, 93%)
CMYKcmyk(35.3%, 66%, 0%, 6.7%)
CIE-LABlab(50.60, 59.66, -67.76)
CIE-LCHlch(50.60, 90.28, 311.36°)
OKLaboklab(60.03% 0.1166 -0.1928)
OKLCHoklch(60.03% 0.225 301.2)
XYZxyz(31.6978, 18.9278, 82.8558)
Luminance0.1893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51EE #A5EE51
analogous
#5157EE #9A51EE #E851EE
triadic
#9A51EE #EE9A51 #51EE9A
tetradic
#9A51EE #EE5157 #A5EE51 #51EEE8
square
#9A51EE #EE5157 #A5EE51 #51EEE8
split-complementary
#9A51EE #EEE851 #57EE51
monochromatic
#5D11B3 #7A19E9 #9A51EE #BA89F3 #DBC1F9

Accessibility & contrast

On white

4.39
#9A51EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#9A51EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A51EE
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51EE#FFFFFF#000000##000000
##9A51EE1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0078EB
Tritanopia (blue-blind)
#887599
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a51ee;
/* rgb */ color: rgb(154, 81, 238);
/* oklch */ color: oklch(60.0% 0.225 301.2);
Tailwind
colors: {
  custom: {
    50: '#bd86f4',
    500: '#9a51ee',
    950: '#000000',
  },
}
SCSS
$custom: #9a51ee;
$custom-light: #bd86f4;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51ee",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 267.898,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60028,
    "c": 0.22535,
    "h": 301.2
  },
  "luminance": 0.18928
}

Semantic roles & 50–950 ramp

primary
#9A51EE
secondary
#CFEAB1
accent
#DF077A
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A51EE

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

Preview Lab → · Contrast checker → · Palette generator →

#9A51EE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva