#9F5DEC#9F5DEC

#9F5DEC is a light, highly saturated violet. Relative luminance 0.213; OKLCH L 62.0% C 0.208 H 301.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#9F5DEC
RGBrgb(159, 93, 236)
HSLhsl(268, 79%, 65%)
HSVhsv(268, 61%, 93%)
CMYKcmyk(32.6%, 60.6%, 0%, 7.5%)
CIE-LABlab(53.23, 54.26, -62.37)
CIE-LCHlch(53.23, 82.67, 311.02°)
OKLaboklab(62.01% 0.1101 -0.1769)
OKLCHoklch(62.01% 0.208 301.9)
XYZxyz(33.3492, 21.2557, 81.6864)
Luminance0.2126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DEC #AAEC5D
analogous
#5D63EC #9F5DEC #E65DEC
triadic
#9F5DEC #EC9F5D #5DEC9F
tetradic
#9F5DEC #EC5D63 #AAEC5D #5DECE6
square
#9F5DEC #EC5D63 #AAEC5D #5DECE6
split-complementary
#9F5DEC #ECE65D #63EC5D
monochromatic
#6116B9 #7F26E6 #9F5DEC #BF94F2 #E0CBF9

Accessibility & contrast

On white

4.00
#9F5DEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#9F5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DEC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DEC#FFFFFF#000000##000000
##9F5DEC1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF1
Deuteranopia (green-blind)
#317FE9
Tritanopia (blue-blind)
#907B9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9f5dec;
/* rgb */ color: rgb(159, 93, 236);
/* oklch */ color: oklch(62.0% 0.208 301.9);
Tailwind
colors: {
  custom: {
    50: '#c08ef3',
    500: '#9f5dec',
    950: '#000000',
  },
}
SCSS
$custom: #9f5dec;
$custom-light: #c08ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5dec",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 267.692,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.62009,
    "c": 0.2083,
    "h": 301.9
  },
  "luminance": 0.21256
}

Semantic roles & 50–950 ramp

primary
#9F5DEC
secondary
#D4EBBA
accent
#DB0A7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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