#9A5CD2#9A5CD2

#9A5CD2 is a mid, vivid violet. Relative luminance 0.192; OKLCH L 59.7% C 0.179 H 305.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9A5CD2
RGBrgb(154, 92, 210)
HSLhsl(272, 57%, 59%)
HSVhsv(272, 56%, 82%)
CMYKcmyk(26.7%, 56.2%, 0%, 17.6%)
CIE-LABlab(50.89, 47.43, -51.45)
CIE-LCHlch(50.89, 69.98, 312.67°)
OKLaboklab(59.67% 0.1051 -0.145)
OKLCHoklch(59.67% 0.179 305.9)
XYZxyz(28.7840, 19.1777, 63.1456)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CD2 #94D25C
analogous
#5F5CD2 #9A5CD2 #D25CCF
triadic
#9A5CD2 #D29A5C #5CD29A
tetradic
#9A5CD2 #D25F5C #94D25C #5CCFD2
square
#9A5CD2 #D25F5C #94D25C #5CCFD2
split-complementary
#9A5CD2 #CFD25C #5CD25F
monochromatic
#5C278D #7C34BD #9A5CD2 #B88CDF #D5BCEC

Accessibility & contrast

On white

4.34
#9A5CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#9A5CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CD2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CD2#FFFFFF#000000##000000
##9A5CD21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3077D6
Deuteranopia (green-blind)
#477ACF
Tritanopia (blue-blind)
#91728E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9a5cd2;
/* rgb */ color: rgb(154, 92, 210);
/* oklch */ color: oklch(59.7% 0.179 305.9);
Tailwind
colors: {
  custom: {
    50: '#bb8ce0',
    500: '#9a5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cd2;
$custom-light: #bb8ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cd2",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 271.525,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59674,
    "c": 0.17905,
    "h": 305.9
  },
  "luminance": 0.19177
}

Semantic roles & 50–950 ramp

primary
#9A5CD2
secondary
#C4DCAE
accent
#E04890
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9A5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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