#5E52CD#5E52CD

#5E52CD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.183 H 282.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5E52CD
RGBrgb(94, 82, 205)
HSLhsl(246, 55%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(54.1%, 60%, 0%, 19.6%)
CIE-LABlab(42.49, 38.42, -62.42)
CIE-LCHlch(42.49, 73.30, 301.61°)
OKLaboklab(52.01% 0.0392 -0.179)
OKLCHoklch(52.01% 0.183 282.4)
XYZxyz(18.6494, 12.8209, 59.2378)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52CD #C1CD52
analogous
#5284CD #5E52CD #9C52CD
triadic
#5E52CD #CD5E52 #52CD5E
tetradic
#5E52CD #CD5284 #C1CD52 #52CD9C
square
#5E52CD #CD5284 #C1CD52 #52CD9C
split-complementary
#5E52CD #CD9C52 #84CD52
monochromatic
#2E2580 #3F33AF #5E52CD #8A81DB #B6B1E8

Accessibility & contrast

On white

5.89
#5E52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5E52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52CD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52CD#FFFFFF#000000##FFFFFF
##5E52CD1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#2C6F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5e52cd;
/* rgb */ color: rgb(94, 82, 205);
/* oklch */ color: oklch(52.0% 0.183 282.4);
Tailwind
colors: {
  custom: {
    50: '#9583dd',
    500: '#5e52cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e52cd;
$custom-light: #9583dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52cd",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 245.854,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52014,
    "c": 0.18329,
    "h": 282.4
  },
  "luminance": 0.12822
}

Semantic roles & 50–950 ramp

primary
#5E52CD
secondary
#D2D7A4
accent
#DE49D0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5E52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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