#9F59CC#9F59CC

#9F59CC is a mid, vivid violet. Relative luminance 0.189; OKLCH L 59.4% C 0.178 H 310.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9F59CC
RGBrgb(159, 89, 204)
HSLhsl(277, 53%, 57%)
HSVhsv(277, 56%, 80%)
CMYKcmyk(22.1%, 56.4%, 0%, 20%)
CIE-LABlab(50.54, 48.89, -48.55)
CIE-LCHlch(50.54, 68.90, 315.20°)
OKLaboklab(59.43% 0.1151 -0.1363)
OKLCHoklch(59.43% 0.178 310.2)
XYZxyz(28.7675, 18.8759, 59.2430)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F59CC #86CC59
analogous
#6659CC #9F59CC #CC59BF
triadic
#9F59CC #CC9F59 #59CC9F
tetradic
#9F59CC #CC6659 #86CC59 #59BFCC
square
#9F59CC #CC6659 #86CC59 #59BFCC
split-complementary
#9F59CC #BFCC59 #59CC66
monochromatic
#5F2883 #8136B1 #9F59CC #BA88DA #D5B7E9

Accessibility & contrast

On white

4.40
#9F59CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#9F59CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F59CC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F59CC#FFFFFF#000000##000000
##9F59CC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3475D0
Deuteranopia (green-blind)
#4E7AC9
Tritanopia (blue-blind)
#996E8A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f59cc;
/* rgb */ color: rgb(159, 89, 204);
/* oklch */ color: oklch(59.4% 0.178 310.2);
Tailwind
colors: {
  custom: {
    50: '#be8bdc',
    500: '#9f59cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f59cc;
$custom-light: #be8bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f59cc",
  "rgb": {
    "r": 159,
    "g": 89,
    "b": 204
  },
  "hsl": {
    "h": 276.522,
    "s": 52.995,
    "l": 57.451
  },
  "oklch": {
    "l": 0.59434,
    "c": 0.17839,
    "h": 310.2
  },
  "luminance": 0.18875
}

Semantic roles & 50–950 ramp

primary
#9F59CC
secondary
#BBD8A9
accent
#DC4B84
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F59CC

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

Preview Lab → · Contrast checker → · Palette generator →

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