#5C40CA#5C40CA

#5C40CA is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.8% C 0.202 H 285.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5C40CA
RGBrgb(92, 64, 202)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 68%, 79%)
CMYKcmyk(54.5%, 68.3%, 0%, 20.8%)
CIE-LABlab(38.21, 47.53, -67.67)
CIE-LCHlch(38.21, 82.70, 305.08°)
OKLaboklab(48.79% 0.0538 -0.1945)
OKLCHoklch(48.79% 0.202 285.5)
XYZxyz(16.9045, 10.2054, 56.9448)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40CA #AECA40
analogous
#4069CA #5C40CA #A140CA
triadic
#5C40CA #CA5C40 #40CA5C
tetradic
#5C40CA #CA4069 #AECA40 #40CAA1
square
#5C40CA #CA4069 #AECA40 #40CAA1
split-complementary
#5C40CA #CAA140 #69CA40
monochromatic
#301F70 #442CA0 #5C40CA #8570D7 #AEA0E5

Accessibility & contrast

On white

6.91
#5C40CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5C40CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40CA
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40CA#FFFFFF#000000##FFFFFF
##5C40CA1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0056C7
Tritanopia (blue-blind)
#2C6480
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5c40ca;
/* rgb */ color: rgb(92, 64, 202);
/* oklch */ color: oklch(48.8% 0.202 285.5);
Tailwind
colors: {
  custom: {
    50: '#9577db',
    500: '#5c40ca',
    950: '#000000',
  },
}
SCSS
$custom: #5c40ca;
$custom-light: #9577db;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40ca",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 252.174,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48788,
    "c": 0.20186,
    "h": 285.5
  },
  "luminance": 0.10206
}

Semantic roles & 50–950 ramp

primary
#5C40CA
secondary
#C5D195
accent
#E048C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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