#5F3EC7#5F3EC7

#5F3EC7 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.5% C 0.200 H 287.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5F3EC7
RGBrgb(95, 62, 199)
HSLhsl(254, 55%, 51%)
HSVhsv(254, 69%, 78%)
CMYKcmyk(52.3%, 68.8%, 0%, 22%)
CIE-LABlab(37.84, 48.23, -66.51)
CIE-LCHlch(37.84, 82.16, 305.94°)
OKLaboklab(48.52% 0.0603 -0.191)
OKLCHoklch(48.52% 0.2 287.5)
XYZxyz(16.7477, 10.0008, 55.0696)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EC7 #A6C73E
analogous
#3E61C7 #5F3EC7 #A43EC7
triadic
#5F3EC7 #C75F3E #3EC75F
tetradic
#5F3EC7 #C73E61 #A6C73E #3EC7A4
square
#5F3EC7 #C73E61 #A6C73E #3EC7A4
split-complementary
#5F3EC7 #C7A43E #61C73E
monochromatic
#321F6B #472D9B #5F3EC7 #866DD5 #AE9DE3

Accessibility & contrast

On white

7.00
#5F3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5F3EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3EC7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EC7#FFFFFF#000000##FFFFFF
##5F3EC71.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#37617E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3ec7;
/* rgb */ color: rgb(95, 62, 199);
/* oklch */ color: oklch(48.5% 0.200 287.5);
Tailwind
colors: {
  custom: {
    50: '#9676d9',
    500: '#5f3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ec7;
$custom-light: #9676d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ec7",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 254.453,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48517,
    "c": 0.20033,
    "h": 287.5
  },
  "luminance": 0.10002
}

Semantic roles & 50–950 ramp

primary
#5F3EC7
secondary
#C0CF92
accent
#DE49BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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