#9A5AE7#9A5AE7

#9A5AE7 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.206 H 301.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9A5AE7
RGBrgb(154, 90, 231)
HSLhsl(267, 75%, 63%)
HSVhsv(267, 61%, 91%)
CMYKcmyk(33.3%, 61%, 0%, 9.4%)
CIE-LABlab(51.78, 53.49, -61.92)
CIE-LCHlch(51.78, 81.83, 310.82°)
OKLaboklab(60.73% 0.1073 -0.1757)
OKLCHoklch(60.73% 0.206 301.4)
XYZxyz(31.4030, 19.9517, 77.7825)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5AE7 #A7E75A
analogous
#5A60E7 #9A5AE7 #E05AE7
triadic
#9A5AE7 #E79A5A #5AE79A
tetradic
#9A5AE7 #E75A60 #A7E75A #5AE7E0
square
#9A5AE7 #E75A60 #A7E75A #5AE7E0
split-complementary
#9A5AE7 #E7E05A #60E75A
monochromatic
#5C19AD #7925DF #9A5AE7 #BB8FEF #DBC5F7

Accessibility & contrast

On white

4.21
#9A5AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9A5AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5AE7
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5AE7#FFFFFF#000000##000000
##9A5AE71.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#2B7BE4
Tritanopia (blue-blind)
#8A7898
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9a5ae7;
/* rgb */ color: rgb(154, 90, 231);
/* oklch */ color: oklch(60.7% 0.206 301.4);
Tailwind
colors: {
  custom: {
    50: '#bc8cef',
    500: '#9a5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ae7;
$custom-light: #bc8cef;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ae7",
  "rgb": {
    "r": 154,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 267.234,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60733,
    "c": 0.20586,
    "h": 301.4
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

primary
#9A5AE7
secondary
#D1E8B5
accent
#D70F7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9A5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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