#5F3CD8#5F3CD8

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

Color values

HEX#5F3CD8
RGBrgb(95, 60, 216)
HSLhsl(253, 67%, 54%)
HSVhsv(253, 72%, 85%)
CMYKcmyk(56%, 72.2%, 0%, 15.3%)
CIE-LABlab(38.94, 54.15, -74.56)
CIE-LCHlch(38.94, 92.15, 305.99°)
OKLaboklab(49.74% 0.0586 -0.2146)
OKLCHoklch(49.74% 0.222 285.3)
XYZxyz(18.7261, 10.6214, 66.0158)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD8 #B5D83C
analogous
#3C67D8 #5F3CD8 #AD3CD8
triadic
#5F3CD8 #D85F3C #3CD85F
tetradic
#5F3CD8 #D83C67 #B5D83C #3CD8AD
square
#5F3CD8 #D83C67 #B5D83C #3CD8AD
split-complementary
#5F3CD8 #D8AD3C #67D83C
monochromatic
#311A80 #4424B3 #5F3CD8 #896FE2 #B3A2EC

Accessibility & contrast

On white

6.72
#5F3CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5F3CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD8
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD8#FFFFFF#000000##FFFFFF
##5F3CD81.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0057D5
Tritanopia (blue-blind)
#246787
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3cd8;
/* rgb */ color: rgb(95, 60, 216);
/* oklch */ color: oklch(49.7% 0.222 285.3);
Tailwind
colors: {
  custom: {
    50: '#9975e5',
    500: '#5f3cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd8;
$custom-light: #9975e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd8",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 216
  },
  "hsl": {
    "h": 253.462,
    "s": 66.667,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49744,
    "c": 0.22248,
    "h": 285.3
  },
  "luminance": 0.10622
}

Semantic roles & 50–950 ramp

primary
#5F3CD8
secondary
#CAD997
accent
#EA3EC3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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