#9A5DF2#9A5DF2

#9A5DF2 is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.9% C 0.214 H 298.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9A5DF2
RGBrgb(154, 93, 242)
HSLhsl(265, 85%, 66%)
HSVhsv(265, 62%, 95%)
CMYKcmyk(36.4%, 61.6%, 0%, 5.1%)
CIE-LABlab(53.07, 54.65, -66.01)
CIE-LCHlch(53.07, 85.70, 309.62°)
OKLaboklab(61.89% 0.1033 -0.1877)
OKLCHoklch(61.89% 0.214 298.8)
XYZxyz(33.2638, 21.1091, 86.3092)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DF2 #B5F25D
analogous
#5D6AF2 #9A5DF2 #E55DF2
triadic
#9A5DF2 #F29A5D #5DF29A
tetradic
#9A5DF2 #F25D6A #B5F25D #5DF2E5
square
#9A5DF2 #F25D6A #B5F25D #5DF2E5
split-complementary
#9A5DF2 #F2E55D #6AF25D
monochromatic
#5A10C5 #7724ED #9A5DF2 #BD96F7 #E1CEFB

Accessibility & contrast

On white

4.02
#9A5DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9A5DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DF2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DF2#FFFFFF#000000##000000
##9A5DF21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF7
Deuteranopia (green-blind)
#1A7DEF
Tritanopia (blue-blind)
#867E9F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9a5df2;
/* rgb */ color: rgb(154, 93, 242);
/* oklch */ color: oklch(61.9% 0.214 298.8);
Tailwind
colors: {
  custom: {
    50: '#bd8ef7',
    500: '#9a5df2',
    950: '#000000',
  },
}
SCSS
$custom: #9a5df2;
$custom-light: #bd8ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5df2",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 242
  },
  "hsl": {
    "h": 264.564,
    "s": 85.143,
    "l": 65.686
  },
  "oklch": {
    "l": 0.61893,
    "c": 0.21427,
    "h": 298.8
  },
  "luminance": 0.2111
}

Semantic roles & 50–950 ramp

primary
#9A5DF2
secondary
#DAEEBD
accent
#E20487
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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