#9F56EB#9F56EB

#9F56EB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 61.0% C 0.217 H 303.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#9F56EB
RGBrgb(159, 86, 235)
HSLhsl(269, 79%, 63%)
HSVhsv(269, 63%, 92%)
CMYKcmyk(32.3%, 63.4%, 0%, 7.8%)
CIE-LABlab(51.87, 57.54, -64.01)
CIE-LCHlch(51.87, 86.07, 311.95°)
OKLaboklab(61% 0.1181 -0.1816)
OKLCHoklch(61% 0.217 303)
XYZxyz(32.6178, 20.0247, 80.7279)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56EB #A2EB56
analogous
#5657EB #9F56EB #E956EB
triadic
#9F56EB #EB9F56 #56EB9F
tetradic
#9F56EB #EB5657 #A2EB56 #56EBE9
square
#9F56EB #EB5657 #A2EB56 #56EBE9
split-complementary
#9F56EB #EBE956 #57EB56
monochromatic
#6215B2 #801FE5 #9F56EB #BE8DF1 #DDC3F8

Accessibility & contrast

On white

4.20
#9F56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#9F56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56EB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56EB#FFFFFF#000000##000000
##9F56EB1.004.205.015.01
#FFFFFF4.201.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#247BE8
Tritanopia (blue-blind)
#907699
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f56eb;
/* rgb */ color: rgb(159, 86, 235);
/* oklch */ color: oklch(61.0% 0.217 303.0);
Tailwind
colors: {
  custom: {
    50: '#c08af2',
    500: '#9f56eb',
    950: '#000000',
  },
}
SCSS
$custom: #9f56eb;
$custom-light: #c08af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56eb",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 269.396,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.61001,
    "c": 0.21664,
    "h": 303
  },
  "luminance": 0.20025
}

Semantic roles & 50–950 ramp

primary
#9F56EB
secondary
#CFE9B4
accent
#DB0A75
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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