#9F5CE3#9F5CE3

#9F5CE3 is a mid, vivid violet. Relative luminance 0.206; OKLCH L 61.3% C 0.200 H 304.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#9F5CE3
RGBrgb(159, 92, 227)
HSLhsl(270, 71%, 63%)
HSVhsv(270, 59%, 89%)
CMYKcmyk(30%, 59.5%, 0%, 11%)
CIE-LABlab(52.48, 52.63, -58.52)
CIE-LCHlch(52.48, 78.71, 311.97°)
OKLaboklab(61.28% 0.1115 -0.1656)
OKLCHoklch(61.28% 0.2 304)
XYZxyz(31.9872, 20.5714, 74.9437)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CE3 #A0E35C
analogous
#5C5CE3 #9F5CE3 #E35CE3
triadic
#9F5CE3 #E39F5C #5CE39F
tetradic
#9F5CE3 #E35C5C #A0E35C #5CE3E3
square
#9F5CE3 #E35C5C #A0E35C #5CE3E3
split-complementary
#9F5CE3 #E3E35C #5CE35C
monochromatic
#621DA8 #8028DA #9F5CE3 #BE90EC #DDC4F5

Accessibility & contrast

On white

4.11
#9F5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#9F5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CE3
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CE3#FFFFFF#000000##000000
##9F5CE31.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#167CE7
Deuteranopia (green-blind)
#3B7DE0
Tritanopia (blue-blind)
#937797
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9f5ce3;
/* rgb */ color: rgb(159, 92, 227);
/* oklch */ color: oklch(61.3% 0.200 304.0);
Tailwind
colors: {
  custom: {
    50: '#bf8dec',
    500: '#9f5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #9f5ce3;
$custom-light: #bf8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5ce3",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 269.778,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61284,
    "c": 0.19961,
    "h": 304
  },
  "luminance": 0.20571
}

Semantic roles & 50–950 ramp

primary
#9F5CE3
secondary
#CEE6B5
accent
#D31373
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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