#9A3ED6#9A3ED6

#9A3ED6 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.224 H 308.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#9A3ED6
RGBrgb(154, 62, 214)
HSLhsl(276, 65%, 54%)
HSVhsv(276, 71%, 84%)
CMYKcmyk(28%, 71%, 0%, 16.1%)
CIE-LABlab(45.87, 62.76, -61.82)
CIE-LCHlch(45.87, 88.10, 315.43°)
OKLaboklab(56.12% 0.1391 -0.1753)
OKLCHoklch(56.12% 0.224 308.4)
XYZxyz(27.1842, 15.1708, 65.1015)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A3ED6 #7AD63E
analogous
#4E3ED6 #9A3ED6 #D63EC6
triadic
#9A3ED6 #D69A3E #3ED69A
tetradic
#9A3ED6 #D64E3E #7AD63E #3EC6D6
square
#9A3ED6 #D64E3E #7AD63E #3EC6D6
split-complementary
#9A3ED6 #C6D63E #3ED64E
monochromatic
#571B7F #7A26B1 #9A3ED6 #B470E1 #CFA3EB

Accessibility & contrast

On white

5.21
#9A3ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#9A3ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A3ED6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A3ED6#FFFFFF#000000##FFFFFF
##9A3ED61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#146ED3
Tritanopia (blue-blind)
#916186
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #9a3ed6;
/* rgb */ color: rgb(154, 62, 214);
/* oklch */ color: oklch(56.1% 0.224 308.4);
Tailwind
colors: {
  custom: {
    50: '#bd7be3',
    500: '#9a3ed6',
    950: '#000000',
  },
}
SCSS
$custom: #9a3ed6;
$custom-light: #bd7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a3ed6",
  "rgb": {
    "r": 154,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 276.316,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.56122,
    "c": 0.22379,
    "h": 308.4
  },
  "luminance": 0.1517
}

Semantic roles & 50–950 ramp

primary
#9A3ED6
secondary
#B1D898
accent
#E84082
background
#FCF7FE
surface
#F8EEFC
border
#D1C9D5
text
#130A16
muted
#827C84

Preview Lab

Preview with #9A3ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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