#5E52CC#5E52CC

#5E52CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.182 H 282.5°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5E52CC
RGBrgb(94, 82, 204)
HSLhsl(246, 54%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(53.9%, 59.8%, 0%, 20%)
CIE-LABlab(42.42, 38.11, -61.96)
CIE-LCHlch(42.42, 72.75, 301.59°)
OKLaboklab(51.94% 0.0393 -0.1777)
OKLCHoklch(51.94% 0.182 282.5)
XYZxyz(18.5291, 12.7728, 58.6041)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52CC #C0CC52
analogous
#5283CC #5E52CC #9B52CC
triadic
#5E52CC #CC5E52 #52CC5E
tetradic
#5E52CC #CC5283 #C0CC52 #52CC9B
square
#5E52CC #CC5283 #C0CC52 #52CC9B
split-complementary
#5E52CC #CC9B52 #83CC52
monochromatic
#2E257E #3F33AE #5E52CC #8A81DA #B6B1E8

Accessibility & contrast

On white

5.91
#5E52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5E52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52CC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52CC#FFFFFF#000000##FFFFFF
##5E52CC1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#2D6F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e52cc;
/* rgb */ color: rgb(94, 82, 204);
/* oklch */ color: oklch(51.9% 0.182 282.5);
Tailwind
colors: {
  custom: {
    50: '#9583dc',
    500: '#5e52cc',
    950: '#000000',
  },
}
SCSS
$custom: #5e52cc;
$custom-light: #9583dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52cc",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 245.902,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51937,
    "c": 0.18198,
    "h": 282.5
  },
  "luminance": 0.12774
}

Semantic roles & 50–950 ramp

primary
#5E52CC
secondary
#D1D6A4
accent
#DE4ACF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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