#5A52CF#5A52CF

#5A52CF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.187 H 280.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5A52CF
RGBrgb(90, 82, 207)
HSLhsl(244, 57%, 57%)
HSVhsv(244, 60%, 81%)
CMYKcmyk(56.5%, 60.4%, 0%, 18.8%)
CIE-LABlab(42.33, 38.32, -63.86)
CIE-LCHlch(42.33, 74.48, 300.97°)
OKLaboklab(51.86% 0.0342 -0.1834)
OKLCHoklch(51.86% 0.187 280.5)
XYZxyz(18.4927, 12.7120, 60.4986)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52CF #C7CF52
analogous
#5289CF #5A52CF #9952CF
triadic
#5A52CF #CF5A52 #52CF5A
tetradic
#5A52CF #CF5289 #C7CF52 #52CF99
square
#5A52CF #CF5289 #C7CF52 #52CF99
split-complementary
#5A52CF #CF9952 #89CF52
monochromatic
#2A2482 #3A31B2 #5A52CF #8882DC #B5B2EA

Accessibility & contrast

On white

5.93
#5A52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A52CF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52CF#FFFFFF#000000##FFFFFF
##5A52CF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#1A7089
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a52cf;
/* rgb */ color: rgb(90, 82, 207);
/* oklch */ color: oklch(51.9% 0.187 280.5);
Tailwind
colors: {
  custom: {
    50: '#9383df',
    500: '#5a52cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a52cf;
$custom-light: #9383df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52cf",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 243.84,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51859,
    "c": 0.18653,
    "h": 280.5
  },
  "luminance": 0.12713
}

Semantic roles & 50–950 ramp

primary
#5A52CF
secondary
#D5D8A5
accent
#E048D6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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