#5F46C3#5F46C3

#5F46C3 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.4% C 0.186 H 286.7°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5F46C3
RGBrgb(95, 70, 195)
HSLhsl(252, 51%, 52%)
HSVhsv(252, 64%, 76%)
CMYKcmyk(51.3%, 64.1%, 0%, 23.5%)
CIE-LABlab(39.16, 42.60, -62.04)
CIE-LCHlch(39.16, 75.26, 304.48°)
OKLaboklab(49.37% 0.0532 -0.1779)
OKLCHoklch(49.37% 0.186 286.7)
XYZxyz(16.7569, 10.7525, 52.8117)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46C3 #AAC346
analogous
#466CC3 #5F46C3 #9E46C3
triadic
#5F46C3 #C35F46 #46C35F
tetradic
#5F46C3 #C3466C #AAC346 #46C39E
square
#5F46C3 #C3466C #AAC346 #46C39E
split-complementary
#5F46C3 #C39E46 #6CC346
monochromatic
#31236C #47329A #5F46C3 #8774D2 #AFA2E1

Accessibility & contrast

On white

6.67
#5F46C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5F46C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46C3
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46C3#FFFFFF#000000##FFFFFF
##5F46C31.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC7
Deuteranopia (green-blind)
#0059C0
Tritanopia (blue-blind)
#39647E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f46c3;
/* rgb */ color: rgb(95, 70, 195);
/* oklch */ color: oklch(49.4% 0.186 286.7);
Tailwind
colors: {
  custom: {
    50: '#957bd6',
    500: '#5f46c3',
    950: '#000000',
  },
}
SCSS
$custom: #5f46c3;
$custom-light: #957bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46c3",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 195
  },
  "hsl": {
    "h": 252,
    "s": 51.02,
    "l": 51.961
  },
  "oklch": {
    "l": 0.49366,
    "c": 0.18569,
    "h": 286.7
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#5F46C3
secondary
#C3CE97
accent
#DA4DBE
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F46C3

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

Preview Lab → · Contrast checker → · Palette generator →

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