#9A5FF2#9A5FF2

#9A5FF2 is a light, highly saturated violet. Relative luminance 0.215; OKLCH L 62.2% C 0.212 H 298.5°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#9A5FF2
RGBrgb(154, 95, 242)
HSLhsl(264, 85%, 66%)
HSVhsv(264, 61%, 95%)
CMYKcmyk(36.4%, 60.7%, 0%, 5.1%)
CIE-LABlab(53.45, 53.61, -65.39)
CIE-LCHlch(53.45, 84.56, 309.35°)
OKLaboklab(62.17% 0.1011 -0.1859)
OKLCHoklch(62.17% 0.212 298.5)
XYZxyz(33.4416, 21.4648, 86.3684)
Luminance0.2147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FF2 #B7F25F
analogous
#5F6DF2 #9A5FF2 #E45FF2
triadic
#9A5FF2 #F29A5F #5FF29A
tetradic
#9A5FF2 #F25F6D #B7F25F #5FF2E4
square
#9A5FF2 #F25F6D #B7F25F #5FF2E4
split-complementary
#9A5FF2 #F2E45F #6DF25F
monochromatic
#5910C6 #7626ED #9A5FF2 #BE98F7 #E1D0FB

Accessibility & contrast

On white

3.97
#9A5FF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#9A5FF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FF2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FF2#FFFFFF#000000##000000
##9A5FF21.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F7
Deuteranopia (green-blind)
#207EEF
Tritanopia (blue-blind)
#867FA0
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #9a5ff2;
/* rgb */ color: rgb(154, 95, 242);
/* oklch */ color: oklch(62.2% 0.212 298.5);
Tailwind
colors: {
  custom: {
    50: '#bd8ff7',
    500: '#9a5ff2',
    950: '#000000',
  },
}
SCSS
$custom: #9a5ff2;
$custom-light: #bd8ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5ff2",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 242
  },
  "hsl": {
    "h": 264.082,
    "s": 84.971,
    "l": 66.078
  },
  "oklch": {
    "l": 0.62174,
    "c": 0.21159,
    "h": 298.5
  },
  "luminance": 0.21465
}

Semantic roles & 50–950 ramp

primary
#9A5FF2
secondary
#DBEFBE
accent
#E10489
background
#FCF8FF
surface
#F8F0FF
border
#D1CBD7
text
#130D17
muted
#827D85

Preview Lab

Preview with #9A5FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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