#5F41DC#5F41DC

#5F41DC is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.222 H 284.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5F41DC
RGBrgb(95, 65, 220)
HSLhsl(252, 69%, 56%)
HSVhsv(252, 70%, 86%)
CMYKcmyk(56.8%, 70.5%, 0%, 13.7%)
CIE-LABlab(40.21, 52.72, -74.76)
CIE-LCHlch(40.21, 91.48, 305.19°)
OKLaboklab(50.76% 0.054 -0.2152)
OKLCHoklch(50.76% 0.222 284.1)
XYZxyz(19.5239, 11.3796, 68.8640)
Luminance0.1138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41DC #BEDC41
analogous
#4170DC #5F41DC #AC41DC
triadic
#5F41DC #DC5F41 #41DC5F
tetradic
#5F41DC #DC4170 #BEDC41 #41DCAC
square
#5F41DC #DC4170 #BEDC41 #41DCAC
split-complementary
#5F41DC #DCAC41 #70DC41
monochromatic
#2F1989 #4123BD #5F41DC #8B75E6 #B6A8EF

Accessibility & contrast

On white

6.41
#5F41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5F41DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41DC
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41DC#FFFFFF#000000##FFFFFF
##5F41DC1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E1
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#1C6B8A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f41dc;
/* rgb */ color: rgb(95, 65, 220);
/* oklch */ color: oklch(50.8% 0.222 284.1);
Tailwind
colors: {
  custom: {
    50: '#9978e8',
    500: '#5f41dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f41dc;
$custom-light: #9978e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41dc",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 251.613,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50758,
    "c": 0.22189,
    "h": 284.1
  },
  "luminance": 0.11381
}

Semantic roles & 50–950 ramp

primary
#5F41DC
secondary
#D0DD9C
accent
#EC3CCA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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