#5F3CD7#5F3CD7

#5F3CD7 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.221 H 285.4°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5F3CD7
RGBrgb(95, 60, 215)
HSLhsl(254, 66%, 54%)
HSVhsv(254, 72%, 84%)
CMYKcmyk(55.8%, 72.1%, 0%, 15.7%)
CIE-LABlab(38.85, 53.87, -74.13)
CIE-LCHlch(38.85, 91.63, 306.00°)
OKLaboklab(49.65% 0.0588 -0.2134)
OKLCHoklch(49.65% 0.221 285.4)
XYZxyz(18.5972, 10.5698, 65.3370)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD7 #B4D73C
analogous
#3C67D7 #5F3CD7 #AC3CD7
triadic
#5F3CD7 #D75F3C #3CD75F
tetradic
#5F3CD7 #D73C67 #B4D73C #3CD7AC
square
#5F3CD7 #D73C67 #B4D73C #3CD7AC
split-complementary
#5F3CD7 #D7AC3C #67D73C
monochromatic
#311A7F #4424B1 #5F3CD7 #896FE1 #B2A2EC

Accessibility & contrast

On white

6.74
#5F3CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F3CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD7#FFFFFF#000000##FFFFFF
##5F3CD71.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#256686
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3cd7;
/* rgb */ color: rgb(95, 60, 215);
/* oklch */ color: oklch(49.7% 0.221 285.4);
Tailwind
colors: {
  custom: {
    50: '#9875e5',
    500: '#5f3cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd7;
$custom-light: #9875e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd7",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 215
  },
  "hsl": {
    "h": 253.548,
    "s": 65.957,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49654,
    "c": 0.22133,
    "h": 285.4
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#5F3CD7
secondary
#CAD896
accent
#E93FC3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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