#9F56E8#9F56E8

#9F56E8 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.8% C 0.213 H 303.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9F56E8
RGBrgb(159, 86, 232)
HSLhsl(270, 76%, 62%)
HSVhsv(270, 63%, 91%)
CMYKcmyk(31.5%, 62.9%, 0%, 9%)
CIE-LABlab(51.67, 56.83, -62.64)
CIE-LCHlch(51.67, 84.58, 312.22°)
OKLaboklab(60.8% 0.1183 -0.1776)
OKLCHoklch(60.8% 0.213 303.7)
XYZxyz(32.1880, 19.8528, 78.4645)
Luminance0.1985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56E8 #9FE856
analogous
#5656E8 #9F56E8 #E856E8
triadic
#9F56E8 #E89F56 #56E89F
tetradic
#9F56E8 #E85656 #9FE856 #56E8E8
square
#9F56E8 #E85656 #9FE856 #56E8E8
split-complementary
#9F56E8 #E8E856 #56E856
monochromatic
#6217AC #8020E1 #9F56E8 #BE8CEF #DCC2F7

Accessibility & contrast

On white

4.22
#9F56E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#9F56E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56E8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56E8#FFFFFF#000000##000000
##9F56E81.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AED
Deuteranopia (green-blind)
#2A7BE5
Tritanopia (blue-blind)
#917597
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9f56e8;
/* rgb */ color: rgb(159, 86, 232);
/* oklch */ color: oklch(60.8% 0.213 303.7);
Tailwind
colors: {
  custom: {
    50: '#c08af0',
    500: '#9f56e8',
    950: '#000000',
  },
}
SCSS
$custom: #9f56e8;
$custom-light: #c08af0;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56e8",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 232
  },
  "hsl": {
    "h": 270,
    "s": 76.042,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60799,
    "c": 0.21339,
    "h": 303.7
  },
  "luminance": 0.19853
}

Semantic roles & 50–950 ramp

primary
#9F56E8
secondary
#CDE8B2
accent
#D80D73
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56E8

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

Preview Lab → · Contrast checker → · Palette generator →

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