#5C40C8#5C40C8

#5C40C8 is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.6% C 0.199 H 285.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5C40C8
RGBrgb(92, 64, 200)
HSLhsl(252, 55%, 52%)
HSVhsv(252, 68%, 78%)
CMYKcmyk(54%, 68%, 0%, 21.6%)
CIE-LABlab(38.04, 46.94, -66.78)
CIE-LCHlch(38.04, 81.63, 305.10°)
OKLaboklab(48.62% 0.0542 -0.1919)
OKLCHoklch(48.62% 0.199 285.8)
XYZxyz(16.6692, 10.1113, 55.7057)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40C8 #ACC840
analogous
#4068C8 #5C40C8 #A040C8
triadic
#5C40C8 #C85C40 #40C85C
tetradic
#5C40C8 #C84068 #ACC840 #40C8A0
square
#5C40C8 #C84068 #ACC840 #40C8A0
split-complementary
#5C40C8 #C8A040 #68C840
monochromatic
#30206E #442D9D #5C40C8 #8570D6 #AD9FE3

Accessibility & contrast

On white

6.95
#5C40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5C40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40C8
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40C8#FFFFFF#000000##FFFFFF
##5C40C81.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#2E637F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5c40c8;
/* rgb */ color: rgb(92, 64, 200);
/* oklch */ color: oklch(48.6% 0.199 285.8);
Tailwind
colors: {
  custom: {
    50: '#9477da',
    500: '#5c40c8',
    950: '#000000',
  },
}
SCSS
$custom: #5c40c8;
$custom-light: #9477da;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40c8",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 252.353,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.19943,
    "h": 285.8
  },
  "luminance": 0.10112
}

Semantic roles & 50–950 ramp

primary
#5C40C8
secondary
#C3D094
accent
#DF49C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5C40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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