#9F5CEC#9F5CEC

#9F5CEC is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.9% C 0.210 H 302.0°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9F5CEC
RGBrgb(159, 92, 236)
HSLhsl(268, 79%, 64%)
HSVhsv(268, 61%, 93%)
CMYKcmyk(32.6%, 61%, 0%, 7.5%)
CIE-LABlab(53.04, 54.77, -62.68)
CIE-LCHlch(53.04, 83.24, 311.15°)
OKLaboklab(61.87% 0.1112 -0.1778)
OKLCHoklch(61.87% 0.21 302)
XYZxyz(33.2620, 21.0813, 81.6574)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5CEC #A9EC5C
analogous
#5C61EC #9F5CEC #E75CEC
triadic
#9F5CEC #EC9F5C #5CEC9F
tetradic
#9F5CEC #EC5C61 #A9EC5C #5CECE7
square
#9F5CEC #EC5C61 #A9EC5C #5CECE7
split-complementary
#9F5CEC #ECE75C #61EC5C
monochromatic
#6115B8 #7F25E6 #9F5CEC #BF93F2 #E0CAF9

Accessibility & contrast

On white

4.03
#9F5CEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F5CEC#FFFFFF#000000##000000
##9F5CEC1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#2F7EE9
Tritanopia (blue-blind)
#907A9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5cec;
/* rgb */ color: rgb(159, 92, 236);
/* oklch */ color: oklch(61.9% 0.210 302.0);
Tailwind
colors: {
  custom: {
    50: '#c08df3',
    500: '#9f5cec',
    950: '#000000',
  },
}
SCSS
$custom: #9f5cec;
$custom-light: #c08df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5cec",
  "rgb": {
    "r": 159,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 267.917,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61871,
    "c": 0.20968,
    "h": 302
  },
  "luminance": 0.21081
}

Semantic roles & 50–950 ramp

primary
#9F5CEC
secondary
#D4EBB9
accent
#DB0A7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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