#5F3DC7#5F3DC7

#5F3DC7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.201 H 287.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5F3DC7
RGBrgb(95, 61, 199)
HSLhsl(255, 55%, 51%)
HSVhsv(255, 69%, 78%)
CMYKcmyk(52.3%, 69.3%, 0%, 22%)
CIE-LABlab(37.65, 48.76, -66.83)
CIE-LCHlch(37.65, 82.73, 306.12°)
OKLaboklab(48.38% 0.0612 -0.192)
OKLCHoklch(48.38% 0.201 287.7)
XYZxyz(16.6938, 9.8931, 55.0517)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DC7 #A5C73D
analogous
#3D60C7 #5F3DC7 #A43DC7
triadic
#5F3DC7 #C75F3D #3DC75F
tetradic
#5F3DC7 #C73D60 #A5C73D #3DC7A4
square
#5F3DC7 #C73D60 #A5C73D #3DC7A4
split-complementary
#5F3DC7 #C7A43D #60C73D
monochromatic
#321F6B #482D9A #5F3DC7 #866CD5 #AD9CE2

Accessibility & contrast

On white

7.05
#5F3DC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F3DC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DC7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DC7#FFFFFF#000000##FFFFFF
##5F3DC71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3dc7;
/* rgb */ color: rgb(95, 61, 199);
/* oklch */ color: oklch(48.4% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#9675d9',
    500: '#5f3dc7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dc7;
$custom-light: #9675d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dc7",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 199
  },
  "hsl": {
    "h": 254.783,
    "s": 55.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48378,
    "c": 0.20149,
    "h": 287.7
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#5F3DC7
secondary
#BFCE91
accent
#DF49BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5F3DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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