#9F51EA#9F51EA

#9F51EA is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 60.3% C 0.222 H 303.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#9F51EA
RGBrgb(159, 81, 234)
HSLhsl(271, 78%, 62%)
HSVhsv(271, 65%, 92%)
CMYKcmyk(32.1%, 65.4%, 0%, 8.2%)
CIE-LABlab(50.92, 59.72, -64.98)
CIE-LCHlch(50.92, 88.26, 312.59°)
OKLaboklab(60.3% 0.1236 -0.1845)
OKLCHoklch(60.3% 0.222 303.8)
XYZxyz(32.0884, 19.1964, 79.8407)
Luminance0.1920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F51EA #9CEA51
analogous
#5351EA #9F51EA #EA51E9
triadic
#9F51EA #EA9F51 #51EA9F
tetradic
#9F51EA #EA5351 #9CEA51 #51E9EA
square
#9F51EA #EA5351 #9CEA51 #51E9EA
split-complementary
#9F51EA #E9EA51 #51EA53
monochromatic
#6215AC #811BE2 #9F51EA #BD88F1 #DBBEF7

Accessibility & contrast

On white

4.34
#9F51EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#9F51EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F51EA
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F51EA#FFFFFF#000000##000000
##9F51EA1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#1A79E7
Tritanopia (blue-blind)
#917397
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #9f51ea;
/* rgb */ color: rgb(159, 81, 234);
/* oklch */ color: oklch(60.3% 0.222 303.8);
Tailwind
colors: {
  custom: {
    50: '#c087f2',
    500: '#9f51ea',
    950: '#000000',
  },
}
SCSS
$custom: #9f51ea;
$custom-light: #c087f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9f51ea",
  "rgb": {
    "r": 159,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 270.588,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60297,
    "c": 0.22205,
    "h": 303.8
  },
  "luminance": 0.19196
}

Semantic roles & 50–950 ramp

primary
#9F51EA
secondary
#CBE8AF
accent
#DB0B71
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9F51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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