#9A5CCC#9A5CCC

#9A5CCC is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.3% C 0.172 H 307.5°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9A5CCC
RGBrgb(154, 92, 204)
HSLhsl(273, 52%, 58%)
HSVhsv(273, 55%, 80%)
CMYKcmyk(24.5%, 54.9%, 0%, 20%)
CIE-LABlab(50.55, 46.03, -48.57)
CIE-LCHlch(50.55, 66.92, 313.46°)
OKLaboklab(59.31% 0.1049 -0.1365)
OKLCHoklch(59.31% 0.172 307.5)
XYZxyz(28.0504, 18.8843, 59.2824)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5CCC #8ECC5C
analogous
#625CCC #9A5CCC #CC5CC6
triadic
#9A5CCC #CC9A5C #5CCC9A
tetradic
#9A5CCC #CC625C #8ECC5C #5CC6CC
square
#9A5CCC #CC625C #8ECC5C #5CC6CC
split-complementary
#9A5CCC #C6CC5C #5CCC62
monochromatic
#5C2984 #7C38B3 #9A5CCC #B78BDB #D4B9E9

Accessibility & contrast

On white

4.40
#9A5CCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9A5CCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5CCC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5CCC#FFFFFF#000000##000000
##9A5CCC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3776D0
Deuteranopia (green-blind)
#4C79C9
Tritanopia (blue-blind)
#92708B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9a5ccc;
/* rgb */ color: rgb(154, 92, 204);
/* oklch */ color: oklch(59.3% 0.172 307.5);
Tailwind
colors: {
  custom: {
    50: '#bb8cdc',
    500: '#9a5ccc',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ccc;
$custom-light: #bb8cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ccc",
  "rgb": {
    "r": 154,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 273.214,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.59311,
    "c": 0.17216,
    "h": 307.5
  },
  "luminance": 0.18884
}

Semantic roles & 50–950 ramp

primary
#9A5CCC
secondary
#C0D8AC
accent
#DC4C8C
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9A5CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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