#5F3EC9#5F3EC9

#5F3EC9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.203 H 287.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC9
RGBrgb(95, 62, 201)
HSLhsl(254, 56%, 52%)
HSVhsv(254, 69%, 79%)
CMYKcmyk(52.7%, 69.2%, 0%, 21.2%)
CIE-LABlab(38.01, 48.80, -67.40)
CIE-LCHlch(38.01, 83.22, 305.91°)
OKLaboklab(48.69% 0.0599 -0.1937)
OKLCHoklch(48.69% 0.203 287.2)
XYZxyz(16.9814, 10.0943, 56.3006)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC9 #A8C93E
analogous
#3E63C9 #5F3EC9 #A53EC9
triadic
#5F3EC9 #C95F3E #3EC95F
tetradic
#5F3EC9 #C93E63 #A8C93E #3EC9A5
square
#5F3EC9 #C93E63 #A8C93E #3EC9A5
split-complementary
#5F3EC9 #C9A53E #63C93E
monochromatic
#321F6E #472C9E #5F3EC9 #876ED6 #AE9EE4

Accessibility & contrast

On white

6.96
#5F3EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5F3EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3EC9
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EC9#FFFFFF#000000##FFFFFF
##5F3EC91.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCD
Deuteranopia (green-blind)
#0056C6
Tritanopia (blue-blind)
#35627F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3ec9;
/* rgb */ color: rgb(95, 62, 201);
/* oklch */ color: oklch(48.7% 0.203 287.2);
Tailwind
colors: {
  custom: {
    50: '#9676da',
    500: '#5f3ec9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec9;
$custom-light: #9676da;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec9",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 201
  },
  "hsl": {
    "h": 254.245,
    "s": 56.275,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.20272,
    "h": 287.2
  },
  "luminance": 0.10095
}

Semantic roles & 50–950 ramp

primary
#5F3EC9
secondary
#C1D093
accent
#E048BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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