#5F41D9#5F41D9

#5F41D9 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.218 H 284.5°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5F41D9
RGBrgb(95, 65, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 70%, 85%)
CMYKcmyk(56.2%, 70%, 0%, 14.9%)
CIE-LABlab(39.95, 51.85, -73.47)
CIE-LCHlch(39.95, 89.92, 305.21°)
OKLaboklab(50.49% 0.0545 -0.2114)
OKLCHoklch(50.49% 0.218 284.5)
XYZxyz(19.1302, 11.2221, 66.7902)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41D9 #BBD941
analogous
#416FD9 #5F41D9 #AB41D9
triadic
#5F41D9 #D95F41 #41D95F
tetradic
#5F41D9 #D9416F #BBD941 #41D9AB
square
#5F41D9 #D9416F #BBD941 #41D9AB
split-complementary
#5F41D9 #D9AB41 #6FD941
monochromatic
#301B85 #4225B8 #5F41D9 #8A74E3 #B5A7ED

Accessibility & contrast

On white

6.47
#5F41D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F41D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41D9
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41D9#FFFFFF#000000##FFFFFF
##5F41D91.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#0059D6
Tritanopia (blue-blind)
#216988
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f41d9;
/* rgb */ color: rgb(95, 65, 217);
/* oklch */ color: oklch(50.5% 0.218 284.5);
Tailwind
colors: {
  custom: {
    50: '#9878e6',
    500: '#5f41d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f41d9;
$custom-light: #9878e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41d9",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 217
  },
  "hsl": {
    "h": 251.842,
    "s": 66.667,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50493,
    "c": 0.21836,
    "h": 284.5
  },
  "luminance": 0.11223
}

Semantic roles & 50–950 ramp

primary
#5F41D9
secondary
#CEDB9B
accent
#EA3EC8
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41D9

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

Preview Lab → · Contrast checker → · Palette generator →

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