#5F41D7#5F41D7

#5F41D7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.216 H 284.7°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5F41D7
RGBrgb(95, 65, 215)
HSLhsl(252, 65%, 55%)
HSVhsv(252, 70%, 84%)
CMYKcmyk(55.8%, 69.8%, 0%, 15.7%)
CIE-LABlab(39.78, 51.26, -72.60)
CIE-LCHlch(39.78, 88.87, 305.23°)
OKLaboklab(50.32% 0.0549 -0.2089)
OKLCHoklch(50.32% 0.216 284.7)
XYZxyz(18.8716, 11.1187, 65.4285)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41D7 #B9D741
analogous
#416ED7 #5F41D7 #AA41D7
triadic
#5F41D7 #D75F41 #41D75F
tetradic
#5F41D7 #D7416E #B9D741 #41D7AA
square
#5F41D7 #D7416E #B9D741 #41D7AA
split-complementary
#5F41D7 #D7AA41 #6ED741
monochromatic
#301B82 #4326B5 #5F41D7 #8A74E2 #B4A6EC

Accessibility & contrast

On white

6.51
#5F41D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5F41D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F41D7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41D7#FFFFFF#000000##FFFFFF
##5F41D71.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#256987
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f41d7;
/* rgb */ color: rgb(95, 65, 215);
/* oklch */ color: oklch(50.3% 0.216 284.7);
Tailwind
colors: {
  custom: {
    50: '#9878e4',
    500: '#5f41d7',
    950: '#000000',
  },
}
SCSS
$custom: #5f41d7;
$custom-light: #9878e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41d7",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 252,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50317,
    "c": 0.216,
    "h": 284.7
  },
  "luminance": 0.1112
}

Semantic roles & 50–950 ramp

primary
#5F41D7
secondary
#CDD99A
accent
#E840C6
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F41D7

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

Preview Lab → · Contrast checker → · Palette generator →

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