#9F56E3#9F56E3

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

Color values

HEX#9F56E3
RGBrgb(159, 86, 227)
HSLhsl(271, 72%, 61%)
HSVhsv(271, 62%, 89%)
CMYKcmyk(30%, 62.1%, 0%, 11%)
CIE-LABlab(51.35, 55.67, -60.33)
CIE-LCHlch(51.35, 82.09, 312.70°)
OKLaboklab(60.47% 0.1186 -0.1708)
OKLCHoklch(60.47% 0.208 304.8)
XYZxyz(31.4879, 19.5727, 74.7772)
Luminance0.1957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56E3 #9AE356
analogous
#5956E3 #9F56E3 #E356E1
triadic
#9F56E3 #E39F56 #56E39F
tetradic
#9F56E3 #E35956 #9AE356 #56E1E3
square
#9F56E3 #E35956 #9AE356 #56E1E3
split-complementary
#9F56E3 #E1E356 #56E359
monochromatic
#621BA4 #8124D8 #9F56E3 #BD8BEC #DBBFF4

Accessibility & contrast

On white

4.27
#9F56E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#9F56E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56E3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56E3#FFFFFF#000000##000000
##9F56E31.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#327AE0
Tritanopia (blue-blind)
#937395
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #9f56e3;
/* rgb */ color: rgb(159, 86, 227);
/* oklch */ color: oklch(60.5% 0.208 304.8);
Tailwind
colors: {
  custom: {
    50: '#c089ed',
    500: '#9f56e3',
    950: '#000000',
  },
}
SCSS
$custom: #9f56e3;
$custom-light: #c089ed;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56e3",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 227
  },
  "hsl": {
    "h": 271.064,
    "s": 71.574,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60465,
    "c": 0.20795,
    "h": 304.8
  },
  "luminance": 0.19573
}

Semantic roles & 50–950 ramp

primary
#9F56E3
secondary
#C9E5B0
accent
#D4126F
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9F56E3

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

Preview Lab → · Contrast checker → · Palette generator →

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