#9F5FE3#9F5FE3

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

Color values

HEX#9F5FE3
RGBrgb(159, 95, 227)
HSLhsl(269, 70%, 63%)
HSVhsv(269, 58%, 89%)
CMYKcmyk(30%, 58.1%, 0%, 11%)
CIE-LABlab(53.06, 51.07, -57.59)
CIE-LCHlch(53.06, 76.97, 311.57°)
OKLaboklab(61.71% 0.1079 -0.1628)
OKLCHoklch(61.71% 0.195 303.5)
XYZxyz(32.2523, 21.1015, 75.0320)
Luminance0.2110 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5FE3 #A3E35F
analogous
#5F61E3 #9F5FE3 #E15FE3
triadic
#9F5FE3 #E39F5F #5FE39F
tetradic
#9F5FE3 #E35F61 #A3E35F #5FE3E1
square
#9F5FE3 #E35F61 #A3E35F #5FE3E1
split-complementary
#9F5FE3 #E3E15F #61E35F
monochromatic
#621EAA #802BDA #9F5FE3 #BE93EC #DEC7F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F5FE3#FFFFFF#000000##000000
##9F5FE31.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)
#227DE7
Deuteranopia (green-blind)
#407FE0
Tritanopia (blue-blind)
#927998
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5fe3;
/* rgb */ color: rgb(159, 95, 227);
/* oklch */ color: oklch(61.7% 0.195 303.5);
Tailwind
colors: {
  custom: {
    50: '#bf8fec',
    500: '#9f5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #9f5fe3;
$custom-light: #bf8fec;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5fe3",
  "rgb": {
    "r": 159,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 269.091,
    "s": 70.213,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61709,
    "c": 0.19532,
    "h": 303.5
  },
  "luminance": 0.21101
}

Semantic roles & 50–950 ramp

primary
#9F5FE3
secondary
#D0E7B7
accent
#D21376
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D16
muted
#827D84

Preview Lab

Preview with #9F5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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