#9F50E5#9F50E5

#9F50E5 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.8% C 0.218 H 305.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#9F50E5
RGBrgb(159, 80, 229)
HSLhsl(272, 74%, 61%)
HSVhsv(272, 65%, 90%)
CMYKcmyk(30.6%, 65.1%, 0%, 10.2%)
CIE-LABlab(50.41, 59.05, -62.98)
CIE-LCHlch(50.41, 86.33, 313.16°)
OKLaboklab(59.83% 0.1252 -0.1786)
OKLCHoklch(59.83% 0.218 305)
XYZxyz(31.3065, 18.7656, 76.0864)
Luminance0.1877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F50E5 #96E550
analogous
#5450E5 #9F50E5 #E550E0
triadic
#9F50E5 #E59F50 #50E59F
tetradic
#9F50E5 #E55450 #96E550 #50E0E5
square
#9F50E5 #E55450 #96E550 #50E0E5
split-complementary
#9F50E5 #E0E550 #50E554
monochromatic
#6118A2 #8120D8 #9F50E5 #BC85ED #D9BBF5

Accessibility & contrast

On white

4.42
#9F50E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#9F50E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F50E5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F50E5#FFFFFF#000000##000000
##9F50E51.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#2478E2
Tritanopia (blue-blind)
#927094
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #9f50e5;
/* rgb */ color: rgb(159, 80, 229);
/* oklch */ color: oklch(59.8% 0.218 305.0);
Tailwind
colors: {
  custom: {
    50: '#c086ee',
    500: '#9f50e5',
    950: '#000000',
  },
}
SCSS
$custom: #9f50e5;
$custom-light: #c086ee;
$custom-dark: #000000;
JSON
{
  "hex": "#9f50e5",
  "rgb": {
    "r": 159,
    "g": 80,
    "b": 229
  },
  "hsl": {
    "h": 271.812,
    "s": 74.129,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59829,
    "c": 0.21808,
    "h": 305
  },
  "luminance": 0.18765
}

Semantic roles & 50–950 ramp

primary
#9F50E5
secondary
#C7E5AC
accent
#D60F6D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #9F50E5

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

Preview Lab → · Contrast checker → · Palette generator →

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