#5E52CA#5E52CA

#5E52CA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.8% C 0.179 H 282.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5E52CA
RGBrgb(94, 82, 202)
HSLhsl(246, 53%, 56%)
HSVhsv(246, 59%, 79%)
CMYKcmyk(53.5%, 59.4%, 0%, 20.8%)
CIE-LABlab(42.27, 37.49, -61.05)
CIE-LCHlch(42.27, 71.64, 301.56°)
OKLaboklab(51.78% 0.0394 -0.175)
OKLCHoklch(51.78% 0.179 282.7)
XYZxyz(18.2908, 12.6775, 57.3489)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52CA #BECA52
analogous
#5282CA #5E52CA #9A52CA
triadic
#5E52CA #CA5E52 #52CA5E
tetradic
#5E52CA #CA5282 #BECA52 #52CA9A
square
#5E52CA #CA5282 #BECA52 #52CA9A
split-complementary
#5E52CA #CA9A52 #82CA52
monochromatic
#2E267C #4034AB #5E52CA #8A81D8 #B5B0E7

Accessibility & contrast

On white

5.94
#5E52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5E52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52CA
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52CA#FFFFFF#000000##FFFFFF
##5E52CA1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#2F6E86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e52ca;
/* rgb */ color: rgb(94, 82, 202);
/* oklch */ color: oklch(51.8% 0.179 282.7);
Tailwind
colors: {
  custom: {
    50: '#9483db',
    500: '#5e52ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e52ca;
$custom-light: #9483db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52ca",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 246,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.17936,
    "h": 282.7
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#5E52CA
secondary
#D0D5A3
accent
#DD4BCE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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