#5E4CCC#5E4CCC

#5E4CCC is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.9% C 0.190 H 283.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5E4CCC
RGBrgb(94, 76, 204)
HSLhsl(248, 56%, 55%)
HSVhsv(248, 63%, 80%)
CMYKcmyk(53.9%, 62.7%, 0%, 20%)
CIE-LABlab(41.07, 41.66, -64.16)
CIE-LCHlch(41.07, 76.50, 303.00°)
OKLaboklab(50.95% 0.0452 -0.1842)
OKLCHoklch(50.95% 0.19 283.8)
XYZxyz(18.0963, 11.9072, 58.4598)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4CCC #BACC4C
analogous
#4C7ACC #5E4CCC #9E4CCC
triadic
#5E4CCC #CC5E4C #4CCC5E
tetradic
#5E4CCC #CC4C7A #BACC4C #4CCC9E
square
#5E4CCC #CC4C7A #BACC4C #4CCC9E
split-complementary
#5E4CCC #CC9E4C #7ACC4C
monochromatic
#2F237B #4231AA #5E4CCC #897CDA #B4ABE7

Accessibility & contrast

On white

6.21
#5E4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#5E4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4CCC
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4CCC#FFFFFF#000000##FFFFFF
##5E4CCC1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#2E6B85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5e4ccc;
/* rgb */ color: rgb(94, 76, 204);
/* oklch */ color: oklch(50.9% 0.190 283.8);
Tailwind
colors: {
  custom: {
    50: '#957fdc',
    500: '#5e4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5e4ccc;
$custom-light: #957fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4ccc",
  "rgb": {
    "r": 94,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 248.438,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50948,
    "c": 0.18964,
    "h": 283.8
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

primary
#5E4CCC
secondary
#CDD59F
accent
#DF49CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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