#5C42DD#5C42DD

#5C42DD is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.222 H 282.7°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5C42DD
RGBrgb(92, 66, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 70%, 87%)
CMYKcmyk(58.4%, 70.1%, 0%, 13.3%)
CIE-LABlab(40.23, 52.06, -75.31)
CIE-LCHlch(40.23, 91.55, 304.66°)
OKLaboklab(50.74% 0.0489 -0.2169)
OKLCHoklch(50.74% 0.222 282.7)
XYZxyz(19.4089, 11.3909, 69.5685)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42DD #C3DD42
analogous
#4276DD #5C42DD #AA42DD
triadic
#5C42DD #DD5C42 #42DD5C
tetradic
#5C42DD #DD4276 #C3DD42 #42DDAA
square
#5C42DD #DD4276 #C3DD42 #42DDAA
split-complementary
#5C42DD #DDAA42 #76DD42
monochromatic
#2C198C #3D22BF #5C42DD #8976E6 #B5AAF0

Accessibility & contrast

On white

6.41
#5C42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5C42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42DD
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42DD#FFFFFF#000000##FFFFFF
##5C42DD1.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E2
Deuteranopia (green-blind)
#0059DA
Tritanopia (blue-blind)
#036C8B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5c42dd;
/* rgb */ color: rgb(92, 66, 221);
/* oklch */ color: oklch(50.7% 0.222 282.7);
Tailwind
colors: {
  custom: {
    50: '#9779e9',
    500: '#5c42dd',
    950: '#000000',
  },
}
SCSS
$custom: #5c42dd;
$custom-light: #9779e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42dd",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 250.065,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50735,
    "c": 0.22239,
    "h": 282.7
  },
  "luminance": 0.11392
}

Semantic roles & 50–950 ramp

primary
#5C42DD
secondary
#D3DD9D
accent
#EC3BCF
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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