#9F56E4#9F56E4

#9F56E4 is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.5% C 0.209 H 304.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#9F56E4
RGBrgb(159, 86, 228)
HSLhsl(271, 72%, 62%)
HSVhsv(271, 62%, 89%)
CMYKcmyk(30.3%, 62.3%, 0%, 10.6%)
CIE-LABlab(51.41, 55.90, -60.80)
CIE-LCHlch(51.41, 82.59, 312.60°)
OKLaboklab(60.53% 0.1185 -0.1722)
OKLCHoklch(60.53% 0.209 304.5)
XYZxyz(31.6263, 19.6281, 75.5062)
Luminance0.1963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56E4 #9BE456
analogous
#5856E4 #9F56E4 #E456E2
triadic
#9F56E4 #E49F56 #56E49F
tetradic
#9F56E4 #E45856 #9BE456 #56E2E4
square
#9F56E4 #E45856 #9BE456 #56E2E4
split-complementary
#9F56E4 #E2E456 #56E458
monochromatic
#621AA5 #8123DA #9F56E4 #BD8BEC #DBC0F5

Accessibility & contrast

On white

4.26
#9F56E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#9F56E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56E4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56E4#FFFFFF#000000##000000
##9F56E41.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#317BE1
Tritanopia (blue-blind)
#927495
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f56e4;
/* rgb */ color: rgb(159, 86, 228);
/* oklch */ color: oklch(60.5% 0.209 304.5);
Tailwind
colors: {
  custom: {
    50: '#c089ed',
    500: '#9f56e4',
    950: '#000000',
  },
}
SCSS
$custom: #9f56e4;
$custom-light: #c089ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56e4",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 270.845,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60532,
    "c": 0.20904,
    "h": 304.5
  },
  "luminance": 0.19628
}

Semantic roles & 50–950 ramp

primary
#9F56E4
secondary
#CAE5B0
accent
#D51170
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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