#9A5CDC#9A5CDC

#9A5CDC is a mid, vivid violet. Relative luminance 0.197; OKLCH L 60.3% C 0.191 H 303.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#9A5CDC
RGBrgb(154, 92, 220)
HSLhsl(269, 65%, 61%)
HSVhsv(269, 58%, 86%)
CMYKcmyk(30%, 58.2%, 0%, 13.7%)
CIE-LABlab(51.49, 49.80, -56.19)
CIE-LCHlch(51.49, 75.08, 311.55°)
OKLaboklab(60.3% 0.1052 -0.1588)
OKLCHoklch(60.3% 0.191 303.5)
XYZxyz(30.0689, 19.6917, 69.9130)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CDC #9EDC5C
analogous
#5C5EDC #9A5CDC #DA5CDC
triadic
#9A5CDC #DC9A5C #5CDC9A
tetradic
#9A5CDC #DC5C5E #9EDC5C #5CDCDA
square
#9A5CDC #DC5C5E #9EDC5C #5CDCDA
split-complementary
#9A5CDC #DCDA5C #5EDC5C
monochromatic
#5D229C #7B2CCE #9A5CDC #B98EE7 #D8C1F2

Accessibility & contrast

On white

4.25
#9A5CDC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#9A5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CDC
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CDC#FFFFFF#000000##000000
##9A5CDC1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2179E0
Deuteranopia (green-blind)
#3E7BD9
Tritanopia (blue-blind)
#8E7693
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5cdc;
/* rgb */ color: rgb(154, 92, 220);
/* oklch */ color: oklch(60.3% 0.191 303.5);
Tailwind
colors: {
  custom: {
    50: '#bc8de7',
    500: '#9a5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cdc;
$custom-light: #bc8de7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cdc",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 269.063,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60298,
    "c": 0.19053,
    "h": 303.5
  },
  "luminance": 0.19692
}

Semantic roles & 50–950 ramp

primary
#9A5CDC
secondary
#CBE2B2
accent
#CC1976
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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