#9F56CC#9F56CC

#9F56CC is a mid, vivid violet. Relative luminance 0.184; OKLCH L 59.0% C 0.183 H 310.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#9F56CC
RGBrgb(159, 86, 204)
HSLhsl(277, 54%, 57%)
HSVhsv(277, 58%, 80%)
CMYKcmyk(22.1%, 57.8%, 0%, 20%)
CIE-LABlab(49.96, 50.43, -49.47)
CIE-LCHlch(49.96, 70.65, 315.55°)
OKLaboklab(59.01% 0.1189 -0.139)
OKLCHoklch(59.01% 0.183 310.5)
XYZxyz(28.5229, 18.3867, 59.1615)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56CC #83CC56
analogous
#6456CC #9F56CC #CC56BE
triadic
#9F56CC #CC9F56 #56CC9F
tetradic
#9F56CC #CC6456 #83CC56 #56BECC
square
#9F56CC #CC6456 #83CC56 #56BECC
split-complementary
#9F56CC #BECC56 #56CC64
monochromatic
#5E2781 #8135B0 #9F56CC #BA85DA #D4B4E8

Accessibility & contrast

On white

4.49
#9F56CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#9F56CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56CC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56CC#FFFFFF#000000##000000
##9F56CC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f56cc;
/* rgb */ color: rgb(159, 86, 204);
/* oklch */ color: oklch(59.0% 0.183 310.5);
Tailwind
colors: {
  custom: {
    50: '#be89dc',
    500: '#9f56cc',
    950: '#000000',
  },
}
SCSS
$custom: #9f56cc;
$custom-light: #be89dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56cc",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 277.119,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.59009,
    "c": 0.18294,
    "h": 310.5
  },
  "luminance": 0.18386
}

Semantic roles & 50–950 ramp

primary
#9F56CC
secondary
#B9D7A7
accent
#DD4B83
background
#FCF8FD
surface
#F8F0FB
border
#D1CBD4
text
#120C15
muted
#817D83

Preview Lab

Preview with #9F56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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