#9F56EA#9F56EA

#9F56EA is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.9% C 0.216 H 303.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9F56EA
RGBrgb(159, 86, 234)
HSLhsl(270, 78%, 63%)
HSVhsv(270, 63%, 92%)
CMYKcmyk(32.1%, 63.2%, 0%, 8.2%)
CIE-LABlab(51.80, 57.30, -63.55)
CIE-LCHlch(51.80, 85.57, 312.04°)
OKLaboklab(60.93% 0.1181 -0.1803)
OKLCHoklch(60.93% 0.216 303.2)
XYZxyz(32.4737, 19.9670, 79.9692)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56EA #A1EA56
analogous
#5657EA #9F56EA #E956EA
triadic
#9F56EA #EA9F56 #56EA9F
tetradic
#9F56EA #EA5657 #A1EA56 #56EAE9
square
#9F56EA #EA5657 #A1EA56 #56EAE9
split-complementary
#9F56EA #EAE956 #57EA56
monochromatic
#6216B0 #8020E3 #9F56EA #BE8CF1 #DDC3F8

Accessibility & contrast

On white

4.21
#9F56EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9F56EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56EA
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56EA#FFFFFF#000000##000000
##9F56EA1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEF
Deuteranopia (green-blind)
#277BE7
Tritanopia (blue-blind)
#917698
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f56ea;
/* rgb */ color: rgb(159, 86, 234);
/* oklch */ color: oklch(60.9% 0.216 303.2);
Tailwind
colors: {
  custom: {
    50: '#c08af2',
    500: '#9f56ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f56ea;
$custom-light: #c08af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56ea",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 269.595,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.60934,
    "c": 0.21556,
    "h": 303.2
  },
  "luminance": 0.19967
}

Semantic roles & 50–950 ramp

primary
#9F56EA
secondary
#CEE9B3
accent
#DA0B74
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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