#5C2DD4#5C2DD4

#5C2DD4 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.232 H 286.4°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5C2DD4
RGBrgb(92, 45, 212)
HSLhsl(257, 66%, 50%)
HSVhsv(257, 79%, 83%)
CMYKcmyk(56.6%, 78.8%, 0%, 16.9%)
CIE-LABlab(35.80, 59.71, -77.42)
CIE-LCHlch(35.80, 97.77, 307.64°)
OKLaboklab(47.36% 0.0656 -0.223)
OKLCHoklch(47.36% 0.232 286.4)
XYZxyz(17.2321, 8.9046, 63.0853)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2DD4 #A5D42D
analogous
#2D52D4 #5C2DD4 #AF2DD4
triadic
#5C2DD4 #D45C2D #2DD45C
tetradic
#5C2DD4 #D42D52 #A5D42D #2DD4AF
square
#5C2DD4 #D42D52 #A5D42D #2DD4AF
split-complementary
#5C2DD4 #D4AF2D #52D42D
monochromatic
#301770 #4621A3 #5C2DD4 #8360DE #AB93E9

Accessibility & contrast

On white

7.55
#5C2DD4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5C2DD4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2DD4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2DD4#FFFFFF#000000##FFFFFF
##5C2DD41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D9
Deuteranopia (green-blind)
#004FD1
Tritanopia (blue-blind)
#205F81
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c2dd4;
/* rgb */ color: rgb(92, 45, 212);
/* oklch */ color: oklch(47.4% 0.232 286.4);
Tailwind
colors: {
  custom: {
    50: '#976de3',
    500: '#5c2dd4',
    950: '#000000',
  },
}
SCSS
$custom: #5c2dd4;
$custom-light: #976de3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2dd4",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 212
  },
  "hsl": {
    "h": 256.886,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47364,
    "c": 0.23243,
    "h": 286.4
  },
  "luminance": 0.08906
}

Semantic roles & 50–950 ramp

primary
#5C2DD4
secondary
#BFD489
accent
#E93FB9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5C2DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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