#9F56EF#9F56EF

#9F56EF is a mid, highly saturated violet. Relative luminance 0.203; OKLCH L 61.3% C 0.221 H 302.2°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9F56EF
RGBrgb(159, 86, 239)
HSLhsl(269, 83%, 64%)
HSVhsv(269, 64%, 94%)
CMYKcmyk(33.5%, 64%, 0%, 6.3%)
CIE-LABlab(52.13, 58.48, -65.83)
CIE-LCHlch(52.13, 88.05, 311.62°)
OKLaboklab(61.28% 0.1177 -0.187)
OKLCHoklch(61.28% 0.221 302.2)
XYZxyz(33.2022, 20.2584, 83.8057)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F56EF #A6EF56
analogous
#5659EF #9F56EF #EB56EF
triadic
#9F56EF #EF9F56 #56EF9F
tetradic
#9F56EF #EF5659 #A6EF56 #56EFEB
square
#9F56EF #EF5659 #A6EF56 #56EFEB
split-complementary
#9F56EF #EFEB56 #59EF56
monochromatic
#6112B9 #7F1EEA #9F56EF #BF8EF4 #DFC6FA

Accessibility & contrast

On white

4.16
#9F56EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9F56EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F56EF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F56EF#FFFFFF#000000##000000
##9F56EF1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF4
Deuteranopia (green-blind)
#1B7CEC
Tritanopia (blue-blind)
#8F789B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f56ef;
/* rgb */ color: rgb(159, 86, 239);
/* oklch */ color: oklch(61.3% 0.221 302.2);
Tailwind
colors: {
  custom: {
    50: '#c08af5',
    500: '#9f56ef',
    950: '#000000',
  },
}
SCSS
$custom: #9f56ef;
$custom-light: #c08af5;
$custom-dark: #000000;
JSON
{
  "hex": "#9f56ef",
  "rgb": {
    "r": 159,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 268.627,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61275,
    "c": 0.22097,
    "h": 302.2
  },
  "luminance": 0.20259
}

Semantic roles & 50–950 ramp

primary
#9F56EF
secondary
#D2EBB5
accent
#DF0678
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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