#5F41DF#5F41DF

#5F41DF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.0% C 0.225 H 283.7°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5F41DF
RGBrgb(95, 65, 223)
HSLhsl(251, 71%, 56%)
HSVhsv(251, 71%, 87%)
CMYKcmyk(57.4%, 70.9%, 0%, 12.5%)
CIE-LABlab(40.48, 53.59, -76.04)
CIE-LCHlch(40.48, 93.03, 305.18°)
OKLaboklab(51.03% 0.0534 -0.219)
OKLCHoklch(51.03% 0.225 283.7)
XYZxyz(19.9248, 11.5399, 70.9752)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41DF #C1DF41
analogous
#4172DF #5F41DF #AE41DF
triadic
#5F41DF #DF5F41 #41DF5F
tetradic
#5F41DF #DF4172 #C1DF41 #41DFAE
square
#5F41DF #DF4172 #C1DF41 #41DFAE
split-complementary
#5F41DF #DFAE41 #72DF41
monochromatic
#2E188E #3F21C2 #5F41DF #8B75E8 #B7AAF1

Accessibility & contrast

On white

6.35
#5F41DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5F41DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41DF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41DF#FFFFFF#000000##FFFFFF
##5F41DF1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E4
Deuteranopia (green-blind)
#005ADC
Tritanopia (blue-blind)
#156C8C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f41df;
/* rgb */ color: rgb(95, 65, 223);
/* oklch */ color: oklch(51.0% 0.225 283.7);
Tailwind
colors: {
  custom: {
    50: '#9978ea',
    500: '#5f41df',
    950: '#000000',
  },
}
SCSS
$custom: #5f41df;
$custom-light: #9978ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41df",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 251.392,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51026,
    "c": 0.2254,
    "h": 283.7
  },
  "luminance": 0.11541
}

Semantic roles & 50–950 ramp

primary
#5F41DF
secondary
#D2DE9D
accent
#EE3ACC
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41DF

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

Preview Lab → · Contrast checker → · Palette generator →

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