#5F46D2#5F46D2

#5F46D2 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.6% C 0.204 H 284.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#5F46D2
RGBrgb(95, 70, 210)
HSLhsl(251, 61%, 55%)
HSVhsv(251, 67%, 82%)
CMYKcmyk(54.8%, 66.7%, 0%, 17.6%)
CIE-LABlab(40.35, 47.07, -68.78)
CIE-LCHlch(40.35, 83.35, 304.38°)
OKLaboklab(50.6% 0.0514 -0.1977)
OKLCHoklch(50.6% 0.204 284.6)
XYZxyz(18.5388, 11.4653, 62.1964)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46D2 #B9D246
analogous
#4673D2 #5F46D2 #A546D2
triadic
#5F46D2 #D25F46 #46D25F
tetradic
#5F46D2 #D24673 #B9D246 #46D2A5
square
#5F46D2 #D24673 #B9D246 #46D2A5
split-complementary
#5F46D2 #D2A546 #73D246
monochromatic
#301F7F #432BB0 #5F46D2 #8A77DE #B4A8EA

Accessibility & contrast

On white

6.38
#5F46D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#5F46D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46D2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46D2#FFFFFF#000000##FFFFFF
##5F46D21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D6
Deuteranopia (green-blind)
#005BCF
Tritanopia (blue-blind)
#2B6A86
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5f46d2;
/* rgb */ color: rgb(95, 70, 210);
/* oklch */ color: oklch(50.6% 0.204 284.6);
Tailwind
colors: {
  custom: {
    50: '#977be1',
    500: '#5f46d2',
    950: '#000000',
  },
}
SCSS
$custom: #5f46d2;
$custom-light: #977be1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46d2",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 210
  },
  "hsl": {
    "h": 250.714,
    "s": 60.87,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50599,
    "c": 0.20431,
    "h": 284.6
  },
  "luminance": 0.11466
}

Semantic roles & 50–950 ramp

primary
#5F46D2
secondary
#CDD79C
accent
#E444C7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F46D2

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

Preview Lab → · Contrast checker → · Palette generator →

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