#9F5EE4#9F5EE4

#9F5EE4 is a mid, vivid violet. Relative luminance 0.210; OKLCH L 61.6% C 0.198 H 303.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#9F5EE4
RGBrgb(159, 94, 228)
HSLhsl(269, 71%, 63%)
HSVhsv(269, 59%, 89%)
CMYKcmyk(30.3%, 58.8%, 0%, 10.6%)
CIE-LABlab(52.93, 51.83, -58.37)
CIE-LCHlch(52.93, 78.06, 311.61°)
OKLaboklab(61.63% 0.1091 -0.1651)
OKLCHoklch(61.63% 0.198 303.5)
XYZxyz(32.3012, 20.9778, 75.7312)
Luminance0.2098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5EE4 #A3E45E
analogous
#5E60E4 #9F5EE4 #E25EE4
triadic
#9F5EE4 #E49F5E #5EE49F
tetradic
#9F5EE4 #E45E60 #A3E45E #5EE4E2
square
#9F5EE4 #E45E60 #A3E45E #5EE4E2
split-complementary
#9F5EE4 #E4E25E #60E45E
monochromatic
#621DAB #802ADB #9F5EE4 #BE92ED #DEC7F6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F5EE4#FFFFFF#000000##000000
##9F5EE41.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)
#1C7DE8
Deuteranopia (green-blind)
#3D7EE1
Tritanopia (blue-blind)
#927998
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5ee4;
/* rgb */ color: rgb(159, 94, 228);
/* oklch */ color: oklch(61.6% 0.198 303.5);
Tailwind
colors: {
  custom: {
    50: '#bf8eed',
    500: '#9f5ee4',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ee4;
$custom-light: #bf8eed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ee4",
  "rgb": {
    "r": 159,
    "g": 94,
    "b": 228
  },
  "hsl": {
    "h": 269.104,
    "s": 71.277,
    "l": 63.137
  },
  "oklch": {
    "l": 0.6163,
    "c": 0.19789,
    "h": 303.5
  },
  "luminance": 0.20978
}

Semantic roles & 50–950 ramp

primary
#9F5EE4
secondary
#D0E7B7
accent
#D31276
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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