#5F41CE#5F41CE

#5F41CE is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.5% C 0.205 H 286.0°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F41CE
RGBrgb(95, 65, 206)
HSLhsl(253, 59%, 53%)
HSVhsv(253, 68%, 81%)
CMYKcmyk(53.9%, 68.4%, 0%, 19.2%)
CIE-LABlab(39.02, 48.64, -68.66)
CIE-LCHlch(39.02, 84.14, 305.31°)
OKLaboklab(49.54% 0.0565 -0.1973)
OKLCHoklch(49.54% 0.205 286)
XYZxyz(17.7469, 10.6688, 59.5047)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41CE #B0CE41
analogous
#4169CE #5F41CE #A541CE
triadic
#5F41CE #CE5F41 #41CE5F
tetradic
#5F41CE #CE4169 #B0CE41 #41CEA5
square
#5F41CE #CE4169 #B0CE41 #41CEA5
split-complementary
#5F41CE #CEA541 #69CE41
monochromatic
#311E76 #452BA7 #5F41CE #8872DB #B1A2E7

Accessibility & contrast

On white

6.70
#5F41CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F41CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41CE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41CE#FFFFFF#000000##FFFFFF
##5F41CE1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0058CB
Tritanopia (blue-blind)
#306582
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f41ce;
/* rgb */ color: rgb(95, 65, 206);
/* oklch */ color: oklch(49.5% 0.205 286.0);
Tailwind
colors: {
  custom: {
    50: '#9778de',
    500: '#5f41ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f41ce;
$custom-light: #9778de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41ce",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 206
  },
  "hsl": {
    "h": 252.766,
    "s": 58.996,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49537,
    "c": 0.20526,
    "h": 286
  },
  "luminance": 0.1067
}

Semantic roles & 50–950 ramp

primary
#5F41CE
secondary
#C7D497
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F41CE

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

Preview Lab → · Contrast checker → · Palette generator →

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