#9F5CE4#9F5CE4

#9F5CE4 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.201 H 303.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9F5CE4
RGBrgb(159, 92, 228)
HSLhsl(270, 72%, 63%)
HSVhsv(270, 60%, 89%)
CMYKcmyk(30.3%, 59.6%, 0%, 10.6%)
CIE-LABlab(52.54, 52.87, -58.99)
CIE-LCHlch(52.54, 79.21, 311.87°)
OKLaboklab(61.35% 0.1115 -0.1669)
OKLCHoklch(61.35% 0.201 303.7)
XYZxyz(32.1257, 20.6267, 75.6726)
Luminance0.2063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CE4 #A1E45C
analogous
#5C5DE4 #9F5CE4 #E35CE4
triadic
#9F5CE4 #E49F5C #5CE49F
tetradic
#9F5CE4 #E45C5D #A1E45C #5CE4E3
square
#9F5CE4 #E45C5D #A1E45C #5CE4E3
split-complementary
#9F5CE4 #E4E35C #5DE45C
monochromatic
#621CAA #8027DB #9F5CE4 #BE91ED #DDC5F5

Accessibility & contrast

On white

4.10
#9F5CE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9F5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CE4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CE4#FFFFFF#000000##000000
##9F5CE41.004.105.135.13
#FFFFFF4.101.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#137CE8
Deuteranopia (green-blind)
#3A7DE1
Tritanopia (blue-blind)
#927897
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ce4;
/* rgb */ color: rgb(159, 92, 228);
/* oklch */ color: oklch(61.3% 0.201 303.7);
Tailwind
colors: {
  custom: {
    50: '#bf8ded',
    500: '#9f5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ce4;
$custom-light: #bf8ded;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ce4",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 269.559,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61348,
    "c": 0.20073,
    "h": 303.7
  },
  "luminance": 0.20627
}

Semantic roles & 50–950 ramp

primary
#9F5CE4
secondary
#CEE7B5
accent
#D41274
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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