#5F46D9#5F46D9

#5F46D9 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.213 H 283.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#5F46D9
RGBrgb(95, 70, 217)
HSLhsl(250, 66%, 56%)
HSVhsv(250, 68%, 85%)
CMYKcmyk(56.2%, 67.7%, 0%, 14.9%)
CIE-LABlab(40.93, 49.15, -71.86)
CIE-LCHlch(40.93, 87.06, 304.37°)
OKLaboklab(51.19% 0.0504 -0.2067)
OKLCHoklch(51.19% 0.213 283.7)
XYZxyz(19.4300, 11.8218, 66.8902)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46D9 #C0D946
analogous
#4677D9 #5F46D9 #A946D9
triadic
#5F46D9 #D95F46 #46D95F
tetradic
#5F46D9 #D94677 #C0D946 #46D9A9
square
#5F46D9 #D94677 #C0D946 #46D9A9
split-complementary
#5F46D9 #D9A946 #77D946
monochromatic
#2F1C89 #4026BB #5F46D9 #8B79E3 #B7ACEE

Accessibility & contrast

On white

6.24
#5F46D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F46D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46D9
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46D9#FFFFFF#000000##FFFFFF
##5F46D91.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005CD6
Tritanopia (blue-blind)
#216C8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f46d9;
/* rgb */ color: rgb(95, 70, 217);
/* oklch */ color: oklch(51.2% 0.213 283.7);
Tailwind
colors: {
  custom: {
    50: '#987be6',
    500: '#5f46d9',
    950: '#000000',
  },
}
SCSS
$custom: #5f46d9;
$custom-light: #987be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46d9",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 250.204,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51194,
    "c": 0.21281,
    "h": 283.7
  },
  "luminance": 0.11823
}

Semantic roles & 50–950 ramp

primary
#5F46D9
secondary
#D1DC9F
accent
#E93FCC
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46D9

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

Preview Lab → · Contrast checker → · Palette generator →

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