#5F41CF#5F41CF

#5F41CF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.6% C 0.206 H 285.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5F41CF
RGBrgb(95, 65, 207)
HSLhsl(253, 60%, 53%)
HSVhsv(253, 69%, 81%)
CMYKcmyk(54.1%, 68.6%, 0%, 18.8%)
CIE-LABlab(39.10, 48.93, -69.10)
CIE-LCHlch(39.10, 84.67, 305.30°)
OKLaboklab(49.62% 0.0563 -0.1986)
OKLCHoklch(49.62% 0.206 285.8)
XYZxyz(17.8687, 10.7175, 60.1465)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41CF #B1CF41
analogous
#416ACF #5F41CF #A641CF
triadic
#5F41CF #CF5F41 #41CF5F
tetradic
#5F41CF #CF416A #B1CF41 #41CFA6
square
#5F41CF #CF416A #B1CF41 #41CFA6
split-complementary
#5F41CF #CFA641 #6ACF41
monochromatic
#311E77 #452BA8 #5F41CF #8872DB #B1A3E8

Accessibility & contrast

On white

6.68
#5F41CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F41CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41CF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41CF#FFFFFF#000000##FFFFFF
##5F41CF1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#2F6683
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f41cf;
/* rgb */ color: rgb(95, 65, 207);
/* oklch */ color: oklch(49.6% 0.206 285.8);
Tailwind
colors: {
  custom: {
    50: '#9778df',
    500: '#5f41cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f41cf;
$custom-light: #9778df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41cf",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 207
  },
  "hsl": {
    "h": 252.676,
    "s": 59.664,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49623,
    "c": 0.20647,
    "h": 285.8
  },
  "luminance": 0.10718
}

Semantic roles & 50–950 ramp

primary
#5F41CF
secondary
#C8D497
accent
#E345C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F41CF

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

Preview Lab → · Contrast checker → · Palette generator →

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