#9F57EC#9F57EC

#9F57EC is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.2% C 0.216 H 302.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9F57EC
RGBrgb(159, 87, 236)
HSLhsl(269, 80%, 63%)
HSVhsv(269, 63%, 93%)
CMYKcmyk(32.6%, 63.1%, 0%, 7.5%)
CIE-LABlab(52.11, 57.28, -64.17)
CIE-LCHlch(52.11, 86.02, 311.75°)
OKLaboklab(61.2% 0.1169 -0.1821)
OKLCHoklch(61.2% 0.216 302.7)
XYZxyz(32.8431, 20.2434, 81.5177)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F57EC #A4EC57
analogous
#5759EC #9F57EC #E957EC
triadic
#9F57EC #EC9F57 #57EC9F
tetradic
#9F57EC #EC5759 #A4EC57 #57ECE9
square
#9F57EC #EC5759 #A4EC57 #57ECE9
split-complementary
#9F57EC #ECE957 #59EC57
monochromatic
#6214B4 #8020E6 #9F57EC #BE8EF2 #DEC5F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F57EC#FFFFFF#000000##000000
##9F57EC1.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)
#007BF1
Deuteranopia (green-blind)
#257CE9
Tritanopia (blue-blind)
#90779A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9f57ec;
/* rgb */ color: rgb(159, 87, 236);
/* oklch */ color: oklch(61.2% 0.216 302.7);
Tailwind
colors: {
  custom: {
    50: '#c08af3',
    500: '#9f57ec',
    950: '#000000',
  },
}
SCSS
$custom: #9f57ec;
$custom-light: #c08af3;
$custom-dark: #000000;
JSON
{
  "hex": "#9f57ec",
  "rgb": {
    "r": 159,
    "g": 87,
    "b": 236
  },
  "hsl": {
    "h": 268.993,
    "s": 79.679,
    "l": 63.333
  },
  "oklch": {
    "l": 0.612,
    "c": 0.21641,
    "h": 302.7
  },
  "luminance": 0.20243
}

Semantic roles & 50–950 ramp

primary
#9F57EC
secondary
#D0EAB5
accent
#DC0A76
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F57EC

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

Preview Lab → · Contrast checker → · Palette generator →

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