#9F56E7#9F56E7

#9F56E7 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.7% C 0.212 H 303.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#9F56E7
RGBrgb(159, 86, 231)
HSLhsl(270, 75%, 62%)
HSVhsv(270, 63%, 91%)
CMYKcmyk(31.2%, 62.8%, 0%, 9.4%)
CIE-LABlab(51.61, 56.60, -62.18)
CIE-LCHlch(51.61, 84.08, 312.31°)
OKLaboklab(60.73% 0.1183 -0.1763)
OKLCHoklch(60.73% 0.212 303.9)
XYZxyz(32.0464, 19.7961, 77.7186)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56E7 #9EE756
analogous
#5756E7 #9F56E7 #E756E7
triadic
#9F56E7 #E79F56 #56E79F
tetradic
#9F56E7 #E75756 #9EE756 #56E7E7
square
#9F56E7 #E75756 #9EE756 #56E7E7
split-complementary
#9F56E7 #E7E756 #56E757
monochromatic
#6218AA #8120DF #9F56E7 #BD8CEF #DCC1F6

Accessibility & contrast

On white

4.23
#9F56E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#9F56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56E7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56E7#FFFFFF#000000##000000
##9F56E71.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EC
Deuteranopia (green-blind)
#2C7BE4
Tritanopia (blue-blind)
#927597
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f56e7;
/* rgb */ color: rgb(159, 86, 231);
/* oklch */ color: oklch(60.7% 0.212 303.9);
Tailwind
colors: {
  custom: {
    50: '#c08aef',
    500: '#9f56e7',
    950: '#000000',
  },
}
SCSS
$custom: #9f56e7;
$custom-light: #c08aef;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56e7",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 270.207,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60732,
    "c": 0.2123,
    "h": 303.9
  },
  "luminance": 0.19796
}

Semantic roles & 50–950 ramp

primary
#9F56E7
secondary
#CCE7B2
accent
#D70E72
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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