#9A56DB#9A56DB

#9A56DB is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.4% C 0.198 H 304.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9A56DB
RGBrgb(154, 86, 219)
HSLhsl(271, 65%, 60%)
HSVhsv(271, 61%, 86%)
CMYKcmyk(29.7%, 60.7%, 0%, 14.1%)
CIE-LABlab(50.26, 52.67, -57.58)
CIE-LCHlch(50.26, 78.04, 312.45°)
OKLaboklab(59.39% 0.1125 -0.1629)
OKLCHoklch(59.39% 0.198 304.6)
XYZxyz(29.4376, 18.6402, 69.0512)
Luminance0.1864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A56DB #97DB56
analogous
#5856DB #9A56DB #DB56D9
triadic
#9A56DB #DB9A56 #56DB9A
tetradic
#9A56DB #DB5856 #97DB56 #56D9DB
square
#9A56DB #DB5856 #97DB56 #56D9DB
split-complementary
#9A56DB #D9DB56 #56DB58
monochromatic
#5D2097 #7C2BC9 #9A56DB #B888E6 #D6BBF0

Accessibility & contrast

On white

4.44
#9A56DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#9A56DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A56DB
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A56DB#FFFFFF#000000##000000
##9A56DB1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0776DF
Deuteranopia (green-blind)
#3678D8
Tritanopia (blue-blind)
#8E7191
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a56db;
/* rgb */ color: rgb(154, 86, 219);
/* oklch */ color: oklch(59.4% 0.198 304.6);
Tailwind
colors: {
  custom: {
    50: '#bc89e7',
    500: '#9a56db',
    950: '#000000',
  },
}
SCSS
$custom: #9a56db;
$custom-light: #bc89e7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a56db",
  "rgb": {
    "r": 154,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 270.677,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.59387,
    "c": 0.19798,
    "h": 304.6
  },
  "luminance": 0.1864
}

Semantic roles & 50–950 ramp

primary
#9A56DB
secondary
#C6E0AD
accent
#E84092
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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