#5F3CD3#5F3CD3

#5F3CD3 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.3% C 0.217 H 286.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5F3CD3
RGBrgb(95, 60, 211)
HSLhsl(254, 63%, 53%)
HSVhsv(254, 72%, 83%)
CMYKcmyk(55%, 71.6%, 0%, 17.3%)
CIE-LABlab(38.49, 52.72, -72.41)
CIE-LCHlch(38.49, 89.57, 306.06°)
OKLaboklab(49.3% 0.0597 -0.2083)
OKLCHoklch(49.3% 0.217 286)
XYZxyz(18.0895, 10.3668, 62.6632)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD3 #B0D33C
analogous
#3C64D3 #5F3CD3 #AA3CD3
triadic
#5F3CD3 #D35F3C #3CD35F
tetradic
#5F3CD3 #D33C64 #B0D33C #3CD3AA
square
#5F3CD3 #D33C64 #B0D33C #3CD3AA
split-complementary
#5F3CD3 #D3AA3C #64D33C
monochromatic
#311B79 #4527AB #5F3CD3 #886EDE #B1A0EA

Accessibility & contrast

On white

6.83
#5F3CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5F3CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD3
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD3#FFFFFF#000000##FFFFFF
##5F3CD31.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0056D0
Tritanopia (blue-blind)
#2B6584
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3cd3;
/* rgb */ color: rgb(95, 60, 211);
/* oklch */ color: oklch(49.3% 0.217 286.0);
Tailwind
colors: {
  custom: {
    50: '#9875e2',
    500: '#5f3cd3',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd3;
$custom-light: #9875e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd3",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 211
  },
  "hsl": {
    "h": 253.907,
    "s": 63.18,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49295,
    "c": 0.2167,
    "h": 286
  },
  "luminance": 0.10368
}

Semantic roles & 50–950 ramp

primary
#5F3CD3
secondary
#C7D695
accent
#E642C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0815
muted
#7F7B84

Preview Lab

Preview with #5F3CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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