#5D52CF#5D52CF

#5D52CF is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.1% C 0.186 H 281.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#5D52CF
RGBrgb(93, 82, 207)
HSLhsl(245, 57%, 57%)
HSVhsv(245, 60%, 81%)
CMYKcmyk(55.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(42.56, 38.86, -63.47)
CIE-LCHlch(42.56, 74.42, 301.48°)
OKLaboklab(52.09% 0.0379 -0.1821)
OKLCHoklch(52.09% 0.186 281.8)
XYZxyz(18.7905, 12.8656, 60.5125)
Luminance0.1287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D52CF #C4CF52
analogous
#5286CF #5D52CF #9C52CF
triadic
#5D52CF #CF5D52 #52CF5D
tetradic
#5D52CF #CF5286 #C4CF52 #52CF9C
square
#5D52CF #CF5286 #C4CF52 #52CF9C
split-complementary
#5D52CF #CF9C52 #86CF52
monochromatic
#2C2482 #3D31B2 #5D52CF #8A82DC #B7B2EA

Accessibility & contrast

On white

5.88
#5D52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5D52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D52CF
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D52CF#FFFFFF#000000##FFFFFF
##5D52CF1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#0060CC
Tritanopia (blue-blind)
#267089
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d52cf;
/* rgb */ color: rgb(93, 82, 207);
/* oklch */ color: oklch(52.1% 0.186 281.8);
Tailwind
colors: {
  custom: {
    50: '#9583df',
    500: '#5d52cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d52cf;
$custom-light: #9583df;
$custom-dark: #000000;
JSON
{
  "hex": "#5d52cf",
  "rgb": {
    "r": 93,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 245.28,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.5209,
    "c": 0.18604,
    "h": 281.8
  },
  "luminance": 0.12867
}

Semantic roles & 50–950 ramp

primary
#5D52CF
secondary
#D3D8A5
accent
#E048D2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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