#5C42DA#5C42DA

#5C42DA is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.5% C 0.219 H 283.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5C42DA
RGBrgb(92, 66, 218)
HSLhsl(250, 67%, 56%)
HSVhsv(250, 70%, 85%)
CMYKcmyk(57.8%, 69.7%, 0%, 14.5%)
CIE-LABlab(39.97, 51.17, -74.02)
CIE-LCHlch(39.97, 89.99, 304.66°)
OKLaboklab(50.47% 0.0495 -0.2132)
OKLCHoklch(50.47% 0.219 283.1)
XYZxyz(19.0128, 11.2325, 67.4823)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C42DA #C0DA42
analogous
#4274DA #5C42DA #A842DA
triadic
#5C42DA #DA5C42 #42DA5C
tetradic
#5C42DA #DA4274 #C0DA42 #42DAA8
square
#5C42DA #DA4274 #C0DA42 #42DAA8
split-complementary
#5C42DA #DAA842 #74DA42
monochromatic
#2D1A87 #3E24BA #5C42DA #8875E4 #B4A8EE

Accessibility & contrast

On white

6.47
#5C42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5C42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C42DA
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C42DA#FFFFFF#000000##FFFFFF
##5C42DA1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DF
Deuteranopia (green-blind)
#0059D7
Tritanopia (blue-blind)
#0F6B89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5c42da;
/* rgb */ color: rgb(92, 66, 218);
/* oklch */ color: oklch(50.5% 0.219 283.1);
Tailwind
colors: {
  custom: {
    50: '#9779e7',
    500: '#5c42da',
    950: '#000000',
  },
}
SCSS
$custom: #5c42da;
$custom-light: #9779e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c42da",
  "rgb": {
    "r": 92,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 250.263,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50468,
    "c": 0.21882,
    "h": 283.1
  },
  "luminance": 0.11234
}

Semantic roles & 50–950 ramp

primary
#5C42DA
secondary
#D1DB9C
accent
#EA3ECD
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5C42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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