#9A5CDA#9A5CDA

#9A5CDA is a mid, vivid violet. Relative luminance 0.196; OKLCH L 60.2% C 0.188 H 304.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#9A5CDA
RGBrgb(154, 92, 218)
HSLhsl(270, 63%, 61%)
HSVhsv(270, 58%, 85%)
CMYKcmyk(29.4%, 57.8%, 0%, 14.5%)
CIE-LABlab(51.37, 49.32, -55.25)
CIE-LCHlch(51.37, 74.06, 311.76°)
OKLaboklab(60.17% 0.1052 -0.1561)
OKLCHoklch(60.17% 0.188 304)
XYZxyz(29.8056, 19.5864, 68.5264)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CDA #9CDA5C
analogous
#5C5DDA #9A5CDA #D95CDA
triadic
#9A5CDA #DA9A5C #5CDA9A
tetradic
#9A5CDA #DA5C5D #9CDA5C #5CDAD9
square
#9A5CDA #DA5C5D #9CDA5C #5CDAD9
split-complementary
#9A5CDA #DAD95C #5DDA5C
monochromatic
#5D2399 #7B2ECB #9A5CDA #B98EE5 #D8C0F1

Accessibility & contrast

On white

4.27
#9A5CDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#9A5CDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CDA
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CDA#FFFFFF#000000##000000
##9A5CDA1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2579DE
Deuteranopia (green-blind)
#407AD7
Tritanopia (blue-blind)
#8E7592
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9a5cda;
/* rgb */ color: rgb(154, 92, 218);
/* oklch */ color: oklch(60.2% 0.188 304.0);
Tailwind
colors: {
  custom: {
    50: '#bb8de6',
    500: '#9a5cda',
    950: '#000000',
  },
}
SCSS
$custom: #9a5cda;
$custom-light: #bb8de6;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5cda",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 269.524,
    "s": 63,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60171,
    "c": 0.18824,
    "h": 304
  },
  "luminance": 0.19586
}

Semantic roles & 50–950 ramp

primary
#9A5CDA
secondary
#C9E1B1
accent
#CB1B74
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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