#9A3ED2#9A3ED2

#9A3ED2 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.220 H 309.4°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#9A3ED2
RGBrgb(154, 62, 210)
HSLhsl(277, 62%, 53%)
HSVhsv(277, 70%, 82%)
CMYKcmyk(26.7%, 70.5%, 0%, 17.6%)
CIE-LABlab(45.59, 61.90, -59.97)
CIE-LCHlch(45.59, 86.19, 315.90°)
OKLaboklab(55.84% 0.1397 -0.1698)
OKLCHoklch(55.84% 0.22 309.4)
XYZxyz(26.6796, 14.9689, 62.4441)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A3ED2 #76D23E
analogous
#503ED2 #9A3ED2 #D23EC0
triadic
#9A3ED2 #D29A3E #3ED29A
tetradic
#9A3ED2 #D2503E #76D23E #3EC0D2
square
#9A3ED2 #D2503E #76D23E #3EC0D2
split-complementary
#9A3ED2 #C0D23E #3ED250
monochromatic
#561C79 #7928AB #9A3ED2 #B470DE #CEA1E9

Accessibility & contrast

On white

5.26
#9A3ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#9A3ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A3ED2
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A3ED2#FFFFFF#000000##FFFFFF
##9A3ED21.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#1E6DCF
Tritanopia (blue-blind)
#925F84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #9a3ed2;
/* rgb */ color: rgb(154, 62, 210);
/* oklch */ color: oklch(55.8% 0.220 309.4);
Tailwind
colors: {
  custom: {
    50: '#bc7be1',
    500: '#9a3ed2',
    950: '#000000',
  },
}
SCSS
$custom: #9a3ed2;
$custom-light: #bc7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#9a3ed2",
  "rgb": {
    "r": 154,
    "g": 62,
    "b": 210
  },
  "hsl": {
    "h": 277.297,
    "s": 62.185,
    "l": 53.333
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.21991,
    "h": 309.4
  },
  "luminance": 0.14968
}

Semantic roles & 50–950 ramp

primary
#9A3ED2
secondary
#AED696
accent
#E54380
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #9A3ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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