#9A5DEF#9A5DEF

#9A5DEF is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.7% C 0.211 H 299.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9A5DEF
RGBrgb(154, 93, 239)
HSLhsl(265, 82%, 65%)
HSVhsv(265, 61%, 94%)
CMYKcmyk(35.6%, 61.1%, 0%, 6.3%)
CIE-LABlab(52.87, 53.90, -64.65)
CIE-LCHlch(52.87, 84.17, 309.82°)
OKLaboklab(61.69% 0.1035 -0.1837)
OKLCHoklch(61.69% 0.211 299.4)
XYZxyz(32.8169, 20.9304, 83.9556)
Luminance0.2093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5DEF #B2EF5D
analogous
#5D69EF #9A5DEF #E35DEF
triadic
#9A5DEF #EF9A5D #5DEF9A
tetradic
#9A5DEF #EF5D69 #B2EF5D #5DEFE3
square
#9A5DEF #EF5D69 #B2EF5D #5DEFE3
split-complementary
#9A5DEF #EFE35D #69EF5D
monochromatic
#5B13BF #7725E9 #9A5DEF #BD95F5 #DFCCFA

Accessibility & contrast

On white

4.05
#9A5DEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9A5DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5DEF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5DEF#FFFFFF#000000##000000
##9A5DEF1.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF4
Deuteranopia (green-blind)
#227DEC
Tritanopia (blue-blind)
#877D9D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5def;
/* rgb */ color: rgb(154, 93, 239);
/* oklch */ color: oklch(61.7% 0.211 299.4);
Tailwind
colors: {
  custom: {
    50: '#bd8ef5',
    500: '#9a5def',
    950: '#000000',
  },
}
SCSS
$custom: #9a5def;
$custom-light: #bd8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5def",
  "rgb": {
    "r": 154,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 265.068,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61689,
    "c": 0.21085,
    "h": 299.4
  },
  "luminance": 0.20931
}

Semantic roles & 50–950 ramp

primary
#9A5DEF
secondary
#D8EDBB
accent
#DE0784
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A5DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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