#5F46DC#5F46DC

#5F46DC is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.5% C 0.216 H 283.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5F46DC
RGBrgb(95, 70, 220)
HSLhsl(250, 68%, 57%)
HSVhsv(250, 68%, 86%)
CMYKcmyk(56.8%, 68.2%, 0%, 13.7%)
CIE-LABlab(41.18, 50.04, -73.17)
CIE-LCHlch(41.18, 88.64, 304.37°)
OKLaboklab(51.45% 0.05 -0.2106)
OKLCHoklch(51.45% 0.216 283.3)
XYZxyz(19.8238, 11.9793, 68.9639)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F46DC #C3DC46
analogous
#4678DC #5F46DC #AA46DC
triadic
#5F46DC #DC5F46 #46DC5F
tetradic
#5F46DC #DC4678 #C3DC46 #46DCAA
square
#5F46DC #DC4678 #C3DC46 #46DCAA
split-complementary
#5F46DC #DCAA46 #78DC46
monochromatic
#2E1B8D #3E24C0 #5F46DC #8C79E6 #B8ADEF

Accessibility & contrast

On white

6.18
#5F46DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F46DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F46DC
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F46DC#FFFFFF#000000##FFFFFF
##5F46DC1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005CD9
Tritanopia (blue-blind)
#1B6D8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f46dc;
/* rgb */ color: rgb(95, 70, 220);
/* oklch */ color: oklch(51.5% 0.216 283.3);
Tailwind
colors: {
  custom: {
    50: '#997be8',
    500: '#5f46dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f46dc;
$custom-light: #997be8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f46dc",
  "rgb": {
    "r": 95,
    "g": 70,
    "b": 220
  },
  "hsl": {
    "h": 250,
    "s": 68.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51452,
    "c": 0.21643,
    "h": 283.3
  },
  "luminance": 0.11981
}

Semantic roles & 50–950 ramp

primary
#5F46DC
secondary
#D3DDA0
accent
#EB3DCE
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F46DC

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

Preview Lab → · Contrast checker → · Palette generator →

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