#9A5AE6#9A5AE6

#9A5AE6 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.7% C 0.205 H 301.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9A5AE6
RGBrgb(154, 90, 230)
HSLhsl(267, 74%, 63%)
HSVhsv(267, 61%, 90%)
CMYKcmyk(33%, 60.9%, 0%, 9.8%)
CIE-LABlab(51.72, 53.25, -61.46)
CIE-LCHlch(51.72, 81.32, 310.91°)
OKLaboklab(60.67% 0.1073 -0.1743)
OKLCHoklch(60.67% 0.205 301.6)
XYZxyz(31.2622, 19.8954, 77.0408)
Luminance0.1990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AE6 #A6E65A
analogous
#5A60E6 #9A5AE6 #E05AE6
triadic
#9A5AE6 #E69A5A #5AE69A
tetradic
#9A5AE6 #E65A60 #A6E65A #5AE6E0
square
#9A5AE6 #E65A60 #A6E65A #5AE6E0
split-complementary
#9A5AE6 #E6E05A #60E65A
monochromatic
#5D1AAC #7925DE #9A5AE6 #BB8FEE #DBC4F6

Accessibility & contrast

On white

4.22
#9A5AE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9A5AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AE6
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AE6#FFFFFF#000000##000000
##9A5AE61.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEA
Deuteranopia (green-blind)
#2D7BE3
Tritanopia (blue-blind)
#8B7898
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ae6;
/* rgb */ color: rgb(154, 90, 230);
/* oklch */ color: oklch(60.7% 0.205 301.6);
Tailwind
colors: {
  custom: {
    50: '#bc8cef',
    500: '#9a5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ae6;
$custom-light: #bc8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ae6",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 267.429,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60666,
    "c": 0.20473,
    "h": 301.6
  },
  "luminance": 0.19896
}

Semantic roles & 50–950 ramp

primary
#9A5AE6
secondary
#D0E7B5
accent
#D6107B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9A5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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