#9F5CEA#9F5CEA

#9F5CEA is a mid, highly saturated violet. Relative luminance 0.210; OKLCH L 61.7% C 0.207 H 302.4°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9F5CEA
RGBrgb(159, 92, 234)
HSLhsl(268, 77%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(32.1%, 60.7%, 0%, 8.2%)
CIE-LABlab(52.91, 54.29, -61.76)
CIE-LCHlch(52.91, 82.23, 311.32°)
OKLaboklab(61.74% 0.1113 -0.1751)
OKLCHoklch(61.74% 0.207 302.4)
XYZxyz(32.9731, 20.9657, 80.1356)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CEA #A7EA5C
analogous
#5C60EA #9F5CEA #E65CEA
triadic
#9F5CEA #EA9F5C #5CEA9F
tetradic
#9F5CEA #EA5C60 #A7EA5C #5CEAE6
square
#9F5CEA #EA5C60 #A7EA5C #5CEAE6
split-complementary
#9F5CEA #EAE65C #60EA5C
monochromatic
#6117B4 #7F26E3 #9F5CEA #BF92F1 #DFC8F8

Accessibility & contrast

On white

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

On black

5.19
#9F5CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5CEA
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5CEA#FFFFFF#000000##000000
##9F5CEA1.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DEF
Deuteranopia (green-blind)
#327EE7
Tritanopia (blue-blind)
#907A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5cea;
/* rgb */ color: rgb(159, 92, 234);
/* oklch */ color: oklch(61.7% 0.207 302.4);
Tailwind
colors: {
  custom: {
    50: '#c08df1',
    500: '#9f5cea',
    950: '#000000',
  },
}
SCSS
$custom: #9f5cea;
$custom-light: #c08df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5cea",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 268.31,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61739,
    "c": 0.20744,
    "h": 302.4
  },
  "luminance": 0.20966
}

Semantic roles & 50–950 ramp

primary
#9F5CEA
secondary
#D2EAB8
accent
#D90C79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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