#5C45CA#5C45CA

#5C45CA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.196 H 284.6°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5C45CA
RGBrgb(92, 69, 202)
HSLhsl(250, 56%, 53%)
HSVhsv(250, 66%, 79%)
CMYKcmyk(54.5%, 65.8%, 0%, 20.8%)
CIE-LABlab(39.23, 44.74, -66.00)
CIE-LCHlch(39.23, 79.73, 304.13°)
OKLaboklab(49.53% 0.0494 -0.1897)
OKLCHoklch(49.53% 0.196 284.6)
XYZxyz(17.1992, 10.7948, 57.0430)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C45CA #B3CA45
analogous
#4570CA #5C45CA #9E45CA
triadic
#5C45CA #CA5C45 #45CA5C
tetradic
#5C45CA #CA4570 #B3CA45 #45CA9E
square
#5C45CA #CA4570 #B3CA45 #45CA9E
split-complementary
#5C45CA #CA9E45 #70CA45
monochromatic
#2F2174 #432FA3 #5C45CA #8675D8 #AFA4E5

Accessibility & contrast

On white

6.65
#5C45CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5C45CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C45CA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C45CA#FFFFFF#000000##FFFFFF
##5C45CA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0058C7
Tritanopia (blue-blind)
#2B6681
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5c45ca;
/* rgb */ color: rgb(92, 69, 202);
/* oklch */ color: oklch(49.5% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#947adb',
    500: '#5c45ca',
    950: '#000000',
  },
}
SCSS
$custom: #5c45ca;
$custom-light: #947adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c45ca",
  "rgb": {
    "r": 92,
    "g": 69,
    "b": 202
  },
  "hsl": {
    "h": 250.376,
    "s": 55.649,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49525,
    "c": 0.19597,
    "h": 284.6
  },
  "luminance": 0.10796
}

Semantic roles & 50–950 ramp

primary
#5C45CA
secondary
#C8D299
accent
#DF49C5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C45CA

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

Preview Lab → · Contrast checker → · Palette generator →

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