#9F59E6#9F59E6

#9F59E6 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.1% C 0.207 H 303.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9F59E6
RGBrgb(159, 89, 230)
HSLhsl(270, 74%, 63%)
HSVhsv(270, 61%, 90%)
CMYKcmyk(30.9%, 61.3%, 0%, 9.8%)
CIE-LABlab(52.09, 54.87, -60.83)
CIE-LCHlch(52.09, 81.91, 312.05°)
OKLaboklab(61.07% 0.1149 -0.1723)
OKLCHoklch(61.07% 0.207 303.7)
XYZxyz(32.1502, 20.2289, 77.0584)
Luminance0.2023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F59E6 #A0E659
analogous
#595AE6 #9F59E6 #E559E6
triadic
#9F59E6 #E69F59 #59E69F
tetradic
#9F59E6 #E6595A #A0E659 #59E6E5
square
#9F59E6 #E6595A #A0E659 #59E6E5
split-complementary
#9F59E6 #E6E559 #5AE659
monochromatic
#621AAB #8024DE #9F59E6 #BE8EEE #DDC3F6

Accessibility & contrast

On white

4.16
#9F59E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9F59E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F59E6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F59E6#FFFFFF#000000##000000
##9F59E61.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEA
Deuteranopia (green-blind)
#337CE3
Tritanopia (blue-blind)
#927697
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f59e6;
/* rgb */ color: rgb(159, 89, 230);
/* oklch */ color: oklch(61.1% 0.207 303.7);
Tailwind
colors: {
  custom: {
    50: '#c08bef',
    500: '#9f59e6',
    950: '#000000',
  },
}
SCSS
$custom: #9f59e6;
$custom-light: #c08bef;
$custom-dark: #000000;
JSON
{
  "hex": "#9f59e6",
  "rgb": {
    "r": 159,
    "g": 89,
    "b": 230
  },
  "hsl": {
    "h": 269.787,
    "s": 73.822,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61066,
    "c": 0.20713,
    "h": 303.7
  },
  "luminance": 0.20229
}

Semantic roles & 50–950 ramp

primary
#9F59E6
secondary
#CEE7B4
accent
#D61073
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F59E6

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

Preview Lab → · Contrast checker → · Palette generator →

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