#5F2EC9#5F2EC9

#5F2EC9 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.219 H 289.4°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5F2EC9
RGBrgb(95, 46, 201)
HSLhsl(259, 63%, 48%)
HSVhsv(259, 77%, 79%)
CMYKcmyk(52.7%, 77.1%, 0%, 21.2%)
CIE-LABlab(35.21, 56.70, -72.00)
CIE-LCHlch(35.21, 91.64, 308.22°)
OKLaboklab(46.71% 0.0727 -0.207)
OKLCHoklch(46.71% 0.219 289.4)
XYZxyz(16.2359, 8.6032, 56.0521)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EC9 #98C92E
analogous
#2E4AC9 #5F2EC9 #AC2EC9
triadic
#5F2EC9 #C95F2E #2EC95F
tetradic
#5F2EC9 #C92E4A #98C92E #2EC9AC
square
#5F2EC9 #C92E4A #98C92E #2EC9AC
split-complementary
#5F2EC9 #C9AC2E #4AC92E
monochromatic
#301765 #472397 #5F2EC9 #835BD9 #A88DE5

Accessibility & contrast

On white

7.72
#5F2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F2EC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EC9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EC9#FFFFFF#000000##FFFFFF
##5F2EC91.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#365A7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f2ec9;
/* rgb */ color: rgb(95, 46, 201);
/* oklch */ color: oklch(46.7% 0.219 289.4);
Tailwind
colors: {
  custom: {
    50: '#976ddb',
    500: '#5f2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ec9;
$custom-light: #976ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ec9",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 258.968,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.21943,
    "h": 289.4
  },
  "luminance": 0.08604
}

Semantic roles & 50–950 ramp

primary
#5F2EC9
secondary
#B7CF84
accent
#E642B2
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5F2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

#5F2EC9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva