#5C40ED#5C40ED

#5C40ED is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.9% C 0.243 H 281.2°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5C40ED
RGBrgb(92, 64, 237)
HSLhsl(250, 83%, 59%)
HSVhsv(250, 73%, 93%)
CMYKcmyk(61.2%, 73%, 0%, 7.1%)
CIE-LABlab(41.30, 57.79, -82.64)
CIE-LCHlch(41.30, 100.84, 304.96°)
OKLaboklab(51.93% 0.0471 -0.2384)
OKLCHoklch(51.93% 0.243 281.2)
XYZxyz(21.5283, 12.0549, 81.2967)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C40ED #D1ED40
analogous
#407BED #5C40ED #B340ED
triadic
#5C40ED #ED5C40 #40ED5C
tetradic
#5C40ED #ED407B #D1ED40 #40EDB3
square
#5C40ED #ED407B #D1ED40 #40EDB3
split-complementary
#5C40ED #EDB340 #7BED40
monochromatic
#270FA3 #3515DB #5C40ED #8C78F2 #BBB0F8

Accessibility & contrast

On white

6.16
#5C40ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5C40ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C40ED
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C40ED#FFFFFF#000000##FFFFFF
##5C40ED1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067F2
Deuteranopia (green-blind)
#005BEA
Tritanopia (blue-blind)
#007193
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5c40ed;
/* rgb */ color: rgb(92, 64, 237);
/* oklch */ color: oklch(51.9% 0.243 281.2);
Tailwind
colors: {
  custom: {
    50: '#9a78f4',
    500: '#5c40ed',
    950: '#000000',
  },
}
SCSS
$custom: #5c40ed;
$custom-light: #9a78f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c40ed",
  "rgb": {
    "r": 92,
    "g": 64,
    "b": 237
  },
  "hsl": {
    "h": 249.711,
    "s": 82.775,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51934,
    "c": 0.24298,
    "h": 281.2
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#5C40ED
secondary
#DBE6A2
accent
#F92FD8
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5C40ED

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

Preview Lab → · Contrast checker → · Palette generator →

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