#9F5DE8#9F5DE8

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

Color values

HEX#9F5DE8
RGBrgb(159, 93, 232)
HSLhsl(268, 75%, 64%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(31.5%, 59.9%, 0%, 9%)
CIE-LABlab(52.98, 53.30, -60.53)
CIE-LCHlch(52.98, 80.65, 311.37°)
OKLaboklab(61.75% 0.1102 -0.1715)
OKLCHoklch(61.75% 0.204 302.7)
XYZxyz(32.7746, 21.0258, 78.6600)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F5DE8 #A6E85D
analogous
#5D60E8 #9F5DE8 #E45DE8
triadic
#9F5DE8 #E89F5D #5DE89F
tetradic
#9F5DE8 #E85D60 #A6E85D #5DE8E4
square
#9F5DE8 #E85D60 #A6E85D #5DE8E4
split-complementary
#9F5DE8 #E8E45D #60E85D
monochromatic
#6119B1 #7F27E0 #9F5DE8 #BF93F0 #DFC8F7

Accessibility & contrast

On white

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

On black

5.21
#9F5DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F5DE8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F5DE8#FFFFFF#000000##000000
##9F5DE81.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#097DEC
Deuteranopia (green-blind)
#377EE5
Tritanopia (blue-blind)
#917A9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9f5de8;
/* rgb */ color: rgb(159, 93, 232);
/* oklch */ color: oklch(61.7% 0.204 302.7);
Tailwind
colors: {
  custom: {
    50: '#c08ef0',
    500: '#9f5de8',
    950: '#000000',
  },
}
SCSS
$custom: #9f5de8;
$custom-light: #c08ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f5de8",
  "rgb": {
    "r": 159,
    "g": 93,
    "b": 232
  },
  "hsl": {
    "h": 268.489,
    "s": 75.135,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61747,
    "c": 0.20382,
    "h": 302.7
  },
  "luminance": 0.21026
}

Semantic roles & 50–950 ramp

primary
#9F5DE8
secondary
#D2E9B8
accent
#D70E78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F5DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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