#9A4ED6#9A4ED6

#9A4ED6 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.204 H 306.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#9A4ED6
RGBrgb(154, 78, 214)
HSLhsl(274, 62%, 57%)
HSVhsv(274, 64%, 84%)
CMYKcmyk(28%, 63.6%, 0%, 16.1%)
CIE-LABlab(48.48, 55.50, -57.61)
CIE-LCHlch(48.48, 79.99, 313.93°)
OKLaboklab(57.99% 0.122 -0.163)
OKLCHoklch(57.99% 0.204 306.8)
XYZxyz(28.1859, 17.1742, 65.4354)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A4ED6 #8AD64E
analogous
#564ED6 #9A4ED6 #D64ECE
triadic
#9A4ED6 #D69A4E #4ED69A
tetradic
#9A4ED6 #D6564E #8AD64E #4ECED6
square
#9A4ED6 #D6564E #8AD64E #4ECED6
split-complementary
#9A4ED6 #CED64E #4ED656
monochromatic
#5B208A #7C2BBB #9A4ED6 #B680E2 #D3B1ED

Accessibility & contrast

On white

4.74
#9A4ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#9A4ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9A4ED6
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A4ED6#FFFFFF#000000##FFFFFF
##9A4ED61.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DA
Deuteranopia (green-blind)
#3174D3
Tritanopia (blue-blind)
#906A8B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9a4ed6;
/* rgb */ color: rgb(154, 78, 214);
/* oklch */ color: oklch(58.0% 0.204 306.8);
Tailwind
colors: {
  custom: {
    50: '#bc84e3',
    500: '#9a4ed6',
    950: '#000000',
  },
}
SCSS
$custom: #9a4ed6;
$custom-light: #bc84e3;
$custom-dark: #000000;
JSON
{
  "hex": "#9a4ed6",
  "rgb": {
    "r": 154,
    "g": 78,
    "b": 214
  },
  "hsl": {
    "h": 273.529,
    "s": 62.385,
    "l": 57.255
  },
  "oklch": {
    "l": 0.57993,
    "c": 0.20361,
    "h": 306.8
  },
  "luminance": 0.17174
}

Semantic roles & 50–950 ramp

primary
#9A4ED6
secondary
#BDDBA4
accent
#E5428A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9A4ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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