#5F41D8#5F41D8

#5F41D8 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.217 H 284.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5F41D8
RGBrgb(95, 65, 216)
HSLhsl(252, 66%, 55%)
HSVhsv(252, 70%, 85%)
CMYKcmyk(56%, 69.9%, 0%, 15.3%)
CIE-LABlab(39.87, 51.56, -73.03)
CIE-LCHlch(39.87, 89.40, 305.22°)
OKLaboklab(50.41% 0.0547 -0.2102)
OKLCHoklch(50.41% 0.217 284.6)
XYZxyz(19.0005, 11.1702, 66.1073)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41D8 #BAD841
analogous
#416ED8 #5F41D8 #AB41D8
triadic
#5F41D8 #D85F41 #41D85F
tetradic
#5F41D8 #D8416E #BAD841 #41D8AB
square
#5F41D8 #D8416E #BAD841 #41D8AB
split-complementary
#5F41D8 #D8AB41 #6ED841
monochromatic
#301B84 #4225B6 #5F41D8 #8A74E2 #B5A7ED

Accessibility & contrast

On white

6.49
#5F41D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5F41D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41D8
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41D8#FFFFFF#000000##FFFFFF
##5F41D81.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DD
Deuteranopia (green-blind)
#0059D5
Tritanopia (blue-blind)
#236988
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f41d8;
/* rgb */ color: rgb(95, 65, 216);
/* oklch */ color: oklch(50.4% 0.217 284.6);
Tailwind
colors: {
  custom: {
    50: '#9878e5',
    500: '#5f41d8',
    950: '#000000',
  },
}
SCSS
$custom: #5f41d8;
$custom-light: #9878e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41d8",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 251.921,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.21718,
    "h": 284.6
  },
  "luminance": 0.11171
}

Semantic roles & 50–950 ramp

primary
#5F41D8
secondary
#CDDA9B
accent
#E93FC7
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41D8

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

Preview Lab → · Contrast checker → · Palette generator →

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