#5F41D2#5F41D2

#5F41D2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.210 H 285.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5F41D2
RGBrgb(95, 65, 210)
HSLhsl(252, 62%, 54%)
HSVhsv(252, 69%, 82%)
CMYKcmyk(54.8%, 69%, 0%, 17.6%)
CIE-LABlab(39.35, 49.81, -70.42)
CIE-LCHlch(39.35, 86.25, 305.27°)
OKLaboklab(49.88% 0.0558 -0.2025)
OKLCHoklch(49.88% 0.21 285.4)
XYZxyz(18.2390, 10.8656, 62.0965)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41D2 #B4D241
analogous
#416CD2 #5F41D2 #A841D2
triadic
#5F41D2 #D25F41 #41D25F
tetradic
#5F41D2 #D2416C #B4D241 #41D2A8
square
#5F41D2 #D2416C #B4D241 #41D2A8
split-complementary
#5F41D2 #D2A841 #6CD241
monochromatic
#311D7B #4429AD #5F41D2 #8972DE #B2A4E9

Accessibility & contrast

On white

6.62
#5F41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F41D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41D2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41D2#FFFFFF#000000##FFFFFF
##5F41D21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#2B6785
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f41d2;
/* rgb */ color: rgb(95, 65, 210);
/* oklch */ color: oklch(49.9% 0.210 285.4);
Tailwind
colors: {
  custom: {
    50: '#9778e1',
    500: '#5f41d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f41d2;
$custom-light: #9778e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41d2",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 252.414,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49882,
    "c": 0.21006,
    "h": 285.4
  },
  "luminance": 0.10867
}

Semantic roles & 50–950 ramp

primary
#5F41D2
secondary
#CAD698
accent
#E543C3
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #5F41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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