#5D46CF#5D46CF

#5D46CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.2% C 0.201 H 284.2°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5D46CF
RGBrgb(93, 70, 207)
HSLhsl(250, 59%, 54%)
HSVhsv(250, 66%, 81%)
CMYKcmyk(55.1%, 66.2%, 0%, 18.8%)
CIE-LABlab(39.93, 45.84, -67.75)
CIE-LCHlch(39.93, 81.80, 304.08°)
OKLaboklab(50.18% 0.0492 -0.1947)
OKLCHoklch(50.18% 0.201 284.2)
XYZxyz(17.9634, 11.2114, 60.2368)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D46CF #B8CF46
analogous
#4674CF #5D46CF #A246CF
triadic
#5D46CF #CF5D46 #46CF5D
tetradic
#5D46CF #CF4674 #B8CF46 #46CFA2
square
#5D46CF #CF4674 #B8CF46 #46CFA2
split-complementary
#5D46CF #CFA246 #74CF46
monochromatic
#2F207B #422CAB #5D46CF #8877DC #B2A7E8

Accessibility & contrast

On white

6.48
#5D46CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5D46CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D46CF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D46CF#FFFFFF#000000##FFFFFF
##5D46CF1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D3
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#286984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d46cf;
/* rgb */ color: rgb(93, 70, 207);
/* oklch */ color: oklch(50.2% 0.201 284.2);
Tailwind
colors: {
  custom: {
    50: '#957bdf',
    500: '#5d46cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d46cf;
$custom-light: #957bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d46cf",
  "rgb": {
    "r": 93,
    "g": 70,
    "b": 207
  },
  "hsl": {
    "h": 250.073,
    "s": 58.798,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50179,
    "c": 0.20085,
    "h": 284.2
  },
  "luminance": 0.11212
}

Semantic roles & 50–950 ramp

primary
#5D46CF
secondary
#CCD59B
accent
#E246C8
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5D46CF

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

Preview Lab → · Contrast checker → · Palette generator →

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