#9D54CA#9D54CA

#9D54CA is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.4% C 0.183 H 310.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9D54CA
RGBrgb(157, 84, 202)
HSLhsl(277, 53%, 56%)
HSVhsv(277, 58%, 79%)
CMYKcmyk(22.3%, 58.4%, 0%, 20.8%)
CIE-LABlab(49.22, 50.51, -49.52)
CIE-LCHlch(49.22, 70.74, 315.57°)
OKLaboklab(58.38% 0.1189 -0.1392)
OKLCHoklch(58.38% 0.183 310.5)
XYZxyz(27.7336, 17.7736, 57.8353)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D54CA #81CA54
analogous
#6254CA #9D54CA #CA54BC
triadic
#9D54CA #CA9D54 #54CA9D
tetradic
#9D54CA #CA6254 #81CA54 #54BCCA
square
#9D54CA #CA6254 #81CA54 #54BCCA
split-complementary
#9D54CA #BCCA54 #54CA62
monochromatic
#5C277D #7E35AC #9D54CA #B883D8 #D3B1E7

Accessibility & contrast

On white

4.61
#9D54CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#9D54CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D54CA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D54CA#FFFFFF#000000##FFFFFF
##9D54CA1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B72CE
Deuteranopia (green-blind)
#4876C7
Tritanopia (blue-blind)
#976A87
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9d54ca;
/* rgb */ color: rgb(157, 84, 202);
/* oklch */ color: oklch(58.4% 0.183 310.5);
Tailwind
colors: {
  custom: {
    50: '#bd87db',
    500: '#9d54ca',
    950: '#000000',
  },
}
SCSS
$custom: #9d54ca;
$custom-light: #bd87db;
$custom-dark: #000000;
JSON
{
  "hex": "#9d54ca",
  "rgb": {
    "r": 157,
    "g": 84,
    "b": 202
  },
  "hsl": {
    "h": 277.119,
    "s": 52.679,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58377,
    "c": 0.18307,
    "h": 310.5
  },
  "luminance": 0.17773
}

Semantic roles & 50–950 ramp

primary
#9D54CA
secondary
#B7D5A5
accent
#DC4C83
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9D54CA

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

Preview Lab → · Contrast checker → · Palette generator →

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