#9A5FE7#9A5FE7

#9A5FE7 is a mid, vivid violet. Relative luminance 0.208; OKLCH L 61.4% C 0.199 H 300.7°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9A5FE7
RGBrgb(154, 95, 231)
HSLhsl(266, 74%, 64%)
HSVhsv(266, 59%, 91%)
CMYKcmyk(33.3%, 58.9%, 0%, 9.4%)
CIE-LABlab(52.76, 50.89, -60.35)
CIE-LCHlch(52.76, 78.94, 310.14°)
OKLaboklab(61.44% 0.1015 -0.1711)
OKLCHoklch(61.44% 0.199 300.7)
XYZxyz(31.8390, 20.8238, 77.9278)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A5FE7 #ACE75F
analogous
#5F68E7 #9A5FE7 #DE5FE7
triadic
#9A5FE7 #E79A5F #5FE79A
tetradic
#9A5FE7 #E75F68 #ACE75F #5FE7DE
square
#9A5FE7 #E75F68 #ACE75F #5FE7DE
split-complementary
#9A5FE7 #E7DE5F #68E75F
monochromatic
#5C1BB1 #782ADF #9A5FE7 #BC94EF #DDC9F7

Accessibility & contrast

On white

4.07
#9A5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9A5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A5FE7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A5FE7#FFFFFF#000000##000000
##9A5FE71.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#127DEB
Deuteranopia (green-blind)
#357DE4
Tritanopia (blue-blind)
#8A7B9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9a5fe7;
/* rgb */ color: rgb(154, 95, 231);
/* oklch */ color: oklch(61.4% 0.199 300.7);
Tailwind
colors: {
  custom: {
    50: '#bc8fef',
    500: '#9a5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #9a5fe7;
$custom-light: #bc8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9a5fe7",
  "rgb": {
    "r": 154,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 266.029,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61442,
    "c": 0.19892,
    "h": 300.7
  },
  "luminance": 0.20824
}

Semantic roles & 50–950 ramp

primary
#9A5FE7
secondary
#D4E9B9
accent
#D60F80
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120D17
muted
#817D85

Preview Lab

Preview with #9A5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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