#5F41CA#5F41CA

#5F41CA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.200 H 286.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5F41CA
RGBrgb(95, 65, 202)
HSLhsl(253, 56%, 52%)
HSVhsv(253, 68%, 79%)
CMYKcmyk(53%, 67.8%, 0%, 20.8%)
CIE-LABlab(38.69, 47.47, -66.88)
CIE-LCHlch(38.69, 82.02, 305.36°)
OKLaboklab(49.2% 0.0571 -0.1921)
OKLCHoklch(49.2% 0.2 286.5)
XYZxyz(17.2671, 10.4769, 56.9781)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41CA #ACCA41
analogous
#4167CA #5F41CA #A441CA
triadic
#5F41CA #CA5F41 #41CA5F
tetradic
#5F41CA #CA4167 #ACCA41 #41CAA4
square
#5F41CA #CA4167 #ACCA41 #41CAA4
split-complementary
#5F41CA #CAA441 #67CA41
monochromatic
#312071 #462DA1 #5F41CA #8771D7 #B0A1E5

Accessibility & contrast

On white

6.78
#5F41CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5F41CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41CA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41CA#FFFFFF#000000##FFFFFF
##5F41CA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#346480
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f41ca;
/* rgb */ color: rgb(95, 65, 202);
/* oklch */ color: oklch(49.2% 0.200 286.5);
Tailwind
colors: {
  custom: {
    50: '#9678db',
    500: '#5f41ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f41ca;
$custom-light: #9678db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41ca",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 202
  },
  "hsl": {
    "h": 253.139,
    "s": 56.379,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49197,
    "c": 0.20044,
    "h": 286.5
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#5F41CA
secondary
#C4D196
accent
#E048BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5F41CA

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

Preview Lab → · Contrast checker → · Palette generator →

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