#9F56CD#9F56CD

#9F56CD is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.1% C 0.184 H 310.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#9F56CD
RGBrgb(159, 86, 205)
HSLhsl(277, 54%, 57%)
HSVhsv(277, 58%, 80%)
CMYKcmyk(22.4%, 58%, 0%, 19.6%)
CIE-LABlab(50.02, 50.66, -49.96)
CIE-LCHlch(50.02, 71.14, 315.40°)
OKLaboklab(59.07% 0.1189 -0.1404)
OKLCHoklch(59.07% 0.184 310.3)
XYZxyz(28.6432, 18.4348, 59.7951)
Luminance0.1843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56CD #84CD56
analogous
#6456CD #9F56CD #CD56BF
triadic
#9F56CD #CD9F56 #56CD9F
tetradic
#9F56CD #CD6456 #84CD56 #56BFCD
square
#9F56CD #CD6456 #84CD56 #56BFCD
split-complementary
#9F56CD #BFCD56 #56CD64
monochromatic
#5F2682 #8134B1 #9F56CD #BA85DB #D5B4E9

Accessibility & contrast

On white

4.48
#9F56CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#9F56CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56CD
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56CD#FFFFFF#000000##000000
##9F56CD1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C74D1
Deuteranopia (green-blind)
#4A78CA
Tritanopia (blue-blind)
#996C89
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #9f56cd;
/* rgb */ color: rgb(159, 86, 205);
/* oklch */ color: oklch(59.1% 0.184 310.3);
Tailwind
colors: {
  custom: {
    50: '#be89dd',
    500: '#9f56cd',
    950: '#000000',
  },
}
SCSS
$custom: #9f56cd;
$custom-light: #be89dd;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56cd",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 276.807,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5907,
    "c": 0.18402,
    "h": 310.3
  },
  "luminance": 0.18434
}

Semantic roles & 50–950 ramp

primary
#9F56CD
secondary
#BAD8A7
accent
#DE4A83
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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