#9D5AF4#9D5AF4

#9D5AF4 is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.9% C 0.221 H 300.0°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9D5AF4
RGBrgb(157, 90, 244)
HSLhsl(266, 88%, 65%)
HSVhsv(266, 63%, 96%)
CMYKcmyk(35.7%, 63.1%, 0%, 4.3%)
CIE-LABlab(52.96, 57.29, -67.28)
CIE-LCHlch(52.96, 88.37, 310.41°)
OKLaboklab(61.93% 0.1104 -0.1914)
OKLCHoklch(61.93% 0.221 300)
XYZxyz(33.8859, 21.0118, 87.8408)
Luminance0.2101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AF4 #B1F45A
analogous
#5A64F4 #9D5AF4 #EA5AF4
triadic
#9D5AF4 #F49D5A #5AF49D
tetradic
#9D5AF4 #F45A64 #B1F45A #5AF4EA
square
#9D5AF4 #F45A64 #B1F45A #5AF4EA
split-complementary
#9D5AF4 #F4EA5A #64F45A
monochromatic
#5E0DC6 #7B21F0 #9D5AF4 #BF93F8 #E1CDFC

Accessibility & contrast

On white

4.04
#9D5AF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#9D5AF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AF4
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AF4#FFFFFF#000000##000000
##9D5AF41.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#117DF1
Tritanopia (blue-blind)
#8A7C9F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5af4;
/* rgb */ color: rgb(157, 90, 244);
/* oklch */ color: oklch(61.9% 0.221 300.0);
Tailwind
colors: {
  custom: {
    50: '#bf8cf9',
    500: '#9d5af4',
    950: '#000000',
  },
}
SCSS
$custom: #9d5af4;
$custom-light: #bf8cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5af4",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 266.104,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61932,
    "c": 0.2209,
    "h": 300
  },
  "luminance": 0.21012
}

Semantic roles & 50–950 ramp

primary
#9D5AF4
secondary
#D8EFBB
accent
#E40181
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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