#9A51EA#9A51EA

#9A51EA is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.7% C 0.221 H 302.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9A51EA
RGBrgb(154, 81, 234)
HSLhsl(269, 78%, 62%)
HSVhsv(269, 65%, 92%)
CMYKcmyk(34.2%, 65.4%, 0%, 8.2%)
CIE-LABlab(50.33, 58.70, -65.96)
CIE-LCHlch(50.33, 88.30, 311.67°)
OKLaboklab(59.75% 0.1171 -0.1875)
OKLCHoklch(59.75% 0.221 302)
XYZxyz(31.1166, 18.6953, 79.7952)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A51EA #A1EA51
analogous
#5155EA #9A51EA #E651EA
triadic
#9A51EA #EA9A51 #51EA9A
tetradic
#9A51EA #EA5155 #A1EA51 #51EAE6
square
#9A51EA #EA5155 #A1EA51 #51EAE6
split-complementary
#9A51EA #EAE651 #55EA51
monochromatic
#5D15AC #7A1BE2 #9A51EA #BA88F1 #D9BEF7

Accessibility & contrast

On white

4.43
#9A51EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#9A51EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A51EA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A51EA#FFFFFF#000000##000000
##9A51EA1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#0677E7
Tritanopia (blue-blind)
#8A7397
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a51ea;
/* rgb */ color: rgb(154, 81, 234);
/* oklch */ color: oklch(59.7% 0.221 302.0);
Tailwind
colors: {
  custom: {
    50: '#bd86f2',
    500: '#9a51ea',
    950: '#000000',
  },
}
SCSS
$custom: #9a51ea;
$custom-light: #bd86f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a51ea",
  "rgb": {
    "r": 154,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 268.627,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.59745,
    "c": 0.22105,
    "h": 302
  },
  "luminance": 0.18695
}

Semantic roles & 50–950 ramp

primary
#9A51EA
secondary
#CDE8AF
accent
#DB0B78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B17
muted
#827C85

Preview Lab

Preview with #9A51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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