#5F46DA#5F46DA

#5F46DA is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.3% C 0.214 H 283.6°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5F46DA
RGBrgb(95, 70, 218)
HSLhsl(250, 67%, 56%)
HSVhsv(250, 68%, 85%)
CMYKcmyk(56.4%, 67.9%, 0%, 14.5%)
CIE-LABlab(41.02, 49.45, -72.30)
CIE-LCHlch(41.02, 87.59, 304.37°)
OKLaboklab(51.28% 0.0503 -0.208)
OKLCHoklch(51.28% 0.214 283.6)
XYZxyz(19.5605, 11.8740, 67.5773)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46DA #C1DA46
analogous
#4677DA #5F46DA #A946DA
triadic
#5F46DA #DA5F46 #46DA5F
tetradic
#5F46DA #DA4677 #C1DA46 #46DAA9
square
#5F46DA #DA4677 #C1DA46 #46DAA9
split-complementary
#5F46DA #DAA946 #77DA46
monochromatic
#2E1C8A #3F26BD #5F46DA #8B79E4 #B7ACEE

Accessibility & contrast

On white

6.22
#5F46DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5F46DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46DA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46DA#FFFFFF#000000##FFFFFF
##5F46DA1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#005CD7
Tritanopia (blue-blind)
#1F6D8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f46da;
/* rgb */ color: rgb(95, 70, 218);
/* oklch */ color: oklch(51.3% 0.214 283.6);
Tailwind
colors: {
  custom: {
    50: '#987be7',
    500: '#5f46da',
    950: '#000000',
  },
}
SCSS
$custom: #5f46da;
$custom-light: #987be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46da",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 218
  },
  "hsl": {
    "h": 250.135,
    "s": 66.667,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5128,
    "c": 0.21402,
    "h": 283.6
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#5F46DA
secondary
#D2DCA0
accent
#EA3ECD
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46DA

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

Preview Lab → · Contrast checker → · Palette generator →

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