#9A56DA#9A56DA

#9A56DA is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.3% C 0.197 H 304.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#9A56DA
RGBrgb(154, 86, 218)
HSLhsl(271, 64%, 60%)
HSVhsv(271, 61%, 85%)
CMYKcmyk(29.4%, 60.6%, 0%, 14.5%)
CIE-LABlab(50.20, 52.44, -57.12)
CIE-LCHlch(50.20, 77.54, 312.56°)
OKLaboklab(59.32% 0.1125 -0.1616)
OKLCHoklch(59.32% 0.197 304.8)
XYZxyz(29.3063, 18.5877, 68.3600)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A56DA #96DA56
analogous
#5856DA #9A56DA #DA56D8
triadic
#9A56DA #DA9A56 #56DA9A
tetradic
#9A56DA #DA5856 #96DA56 #56D8DA
square
#9A56DA #DA5856 #96DA56 #56D8DA
split-complementary
#9A56DA #D8DA56 #56DA58
monochromatic
#5D2195 #7C2CC7 #9A56DA #B888E5 #D6BAF0

Accessibility & contrast

On white

4.45
#9A56DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#9A56DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A56DA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A56DA#FFFFFF#000000##000000
##9A56DA1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0C76DE
Deuteranopia (green-blind)
#3878D7
Tritanopia (blue-blind)
#8F7190
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9a56da;
/* rgb */ color: rgb(154, 86, 218);
/* oklch */ color: oklch(59.3% 0.197 304.8);
Tailwind
colors: {
  custom: {
    50: '#bc89e6',
    500: '#9a56da',
    950: '#000000',
  },
}
SCSS
$custom: #9a56da;
$custom-light: #bc89e6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a56da",
  "rgb": {
    "r": 154,
    "g": 86,
    "b": 218
  },
  "hsl": {
    "h": 270.909,
    "s": 64.078,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59322,
    "c": 0.19686,
    "h": 304.8
  },
  "luminance": 0.18588
}

Semantic roles & 50–950 ramp

primary
#9A56DA
secondary
#C5E0AC
accent
#E74191
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A56DA

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

Preview Lab → · Contrast checker → · Palette generator →

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