#9D5FE7#9D5FE7

#9D5FE7 is a mid, vivid violet. Relative luminance 0.211; OKLCH L 61.8% C 0.199 H 301.9°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9D5FE7
RGBrgb(157, 95, 231)
HSLhsl(267, 74%, 64%)
HSVhsv(267, 59%, 91%)
CMYKcmyk(32%, 58.9%, 0%, 9.4%)
CIE-LABlab(53.08, 51.57, -59.81)
CIE-LCHlch(53.08, 78.97, 310.77°)
OKLaboklab(61.75% 0.1053 -0.1694)
OKLCHoklch(61.75% 0.199 301.9)
XYZxyz(32.4173, 21.1220, 77.9549)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5FE7 #A9E75F
analogous
#5F65E7 #9D5FE7 #E15FE7
triadic
#9D5FE7 #E79D5F #5FE79D
tetradic
#9D5FE7 #E75F65 #A9E75F #5FE7E1
square
#9D5FE7 #E75F65 #A9E75F #5FE7E1
split-complementary
#9D5FE7 #E7E15F #65E75F
monochromatic
#5F1BB1 #7C2ADF #9D5FE7 #BE94EF #DEC9F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D5FE7#FFFFFF#000000##000000
##9D5FE71.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)
#167EEB
Deuteranopia (green-blind)
#387EE4
Tritanopia (blue-blind)
#8E7B9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5fe7;
/* rgb */ color: rgb(157, 95, 231);
/* oklch */ color: oklch(61.8% 0.199 301.9);
Tailwind
colors: {
  custom: {
    50: '#be8fef',
    500: '#9d5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #9d5fe7;
$custom-light: #be8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5fe7",
  "rgb": {
    "r": 157,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 267.353,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61754,
    "c": 0.19947,
    "h": 301.9
  },
  "luminance": 0.21122
}

Semantic roles & 50–950 ramp

primary
#9D5FE7
secondary
#D3E9B9
accent
#D60F7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9D5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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