#5F3CD4#5F3CD4

#5F3CD4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.218 H 285.8°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5F3CD4
RGBrgb(95, 60, 212)
HSLhsl(254, 64%, 53%)
HSVhsv(254, 72%, 83%)
CMYKcmyk(55.2%, 71.7%, 0%, 16.9%)
CIE-LABlab(38.58, 53.01, -72.84)
CIE-LCHlch(38.58, 90.09, 306.05°)
OKLaboklab(49.39% 0.0595 -0.2096)
OKLCHoklch(49.39% 0.218 285.8)
XYZxyz(18.2153, 10.4171, 63.3255)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD4 #B1D43C
analogous
#3C65D4 #5F3CD4 #AB3CD4
triadic
#5F3CD4 #D45F3C #3CD45F
tetradic
#5F3CD4 #D43C65 #B1D43C #3CD4AB
square
#5F3CD4 #D43C65 #B1D43C #3CD4AB
split-complementary
#5F3CD4 #D4AB3C #65D43C
monochromatic
#311B7B #4526AD #5F3CD4 #886EDF #B1A0EA

Accessibility & contrast

On white

6.81
#5F3CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5F3CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD4
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD4#FFFFFF#000000##FFFFFF
##5F3CD41.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#296584
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3cd4;
/* rgb */ color: rgb(95, 60, 212);
/* oklch */ color: oklch(49.4% 0.218 285.8);
Tailwind
colors: {
  custom: {
    50: '#9875e2',
    500: '#5f3cd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd4;
$custom-light: #9875e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd4",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 212
  },
  "hsl": {
    "h": 253.816,
    "s": 63.866,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49385,
    "c": 0.21786,
    "h": 285.8
  },
  "luminance": 0.10418
}

Semantic roles & 50–950 ramp

primary
#5F3CD4
secondary
#C8D795
accent
#E741C1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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