#5F3CD9#5F3CD9

#5F3CD9 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.224 H 285.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F3CD9
RGBrgb(95, 60, 217)
HSLhsl(253, 67%, 54%)
HSVhsv(253, 72%, 85%)
CMYKcmyk(56.2%, 72.4%, 0%, 14.9%)
CIE-LABlab(39.02, 54.44, -74.99)
CIE-LCHlch(39.02, 92.66, 305.98°)
OKLaboklab(49.83% 0.0584 -0.2159)
OKLCHoklch(49.83% 0.224 285.1)
XYZxyz(18.8558, 10.6733, 66.6987)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD9 #B6D93C
analogous
#3C68D9 #5F3CD9 #AE3CD9
triadic
#5F3CD9 #D95F3C #3CD95F
tetradic
#5F3CD9 #D93C68 #B6D93C #3CD9AE
square
#5F3CD9 #D93C68 #B6D93C #3CD9AE
split-complementary
#5F3CD9 #D9AE3C #68D93C
monochromatic
#301981 #4423B5 #5F3CD9 #896FE3 #B3A2ED

Accessibility & contrast

On white

6.70
#5F3CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F3CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD9
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD9#FFFFFF#000000##FFFFFF
##5F3CD91.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#226787
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3cd9;
/* rgb */ color: rgb(95, 60, 217);
/* oklch */ color: oklch(49.8% 0.224 285.1);
Tailwind
colors: {
  custom: {
    50: '#9975e6',
    500: '#5f3cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd9;
$custom-light: #9975e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd9",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 217
  },
  "hsl": {
    "h": 253.376,
    "s": 67.382,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49834,
    "c": 0.22364,
    "h": 285.1
  },
  "luminance": 0.10674
}

Semantic roles & 50–950 ramp

primary
#5F3CD9
secondary
#CBDA97
accent
#EA3EC4
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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