#5A52C8#5A52C8

#5A52C8 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.177 H 281.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5A52C8
RGBrgb(90, 82, 200)
HSLhsl(244, 52%, 55%)
HSVhsv(244, 59%, 78%)
CMYKcmyk(55%, 59%, 0%, 21.6%)
CIE-LABlab(41.81, 36.11, -60.66)
CIE-LCHlch(41.81, 70.59, 300.77°)
OKLaboklab(51.32% 0.0344 -0.174)
OKLCHoklch(51.32% 0.177 281.2)
XYZxyz(17.6558, 12.3773, 56.0911)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A52C8 #C0C852
analogous
#5285C8 #5A52C8 #9552C8
triadic
#5A52C8 #C85A52 #52C85A
tetradic
#5A52C8 #C85285 #C0C852 #52C895
square
#5A52C8 #C85285 #C0C852 #52C895
split-complementary
#5A52C8 #C89552 #85C852
monochromatic
#2C2779 #3D35A8 #5A52C8 #8680D7 #B3AFE6

Accessibility & contrast

On white

6.04
#5A52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A52C8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A52C8#FFFFFF#000000##FFFFFF
##5A52C81.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#005EC6
Tritanopia (blue-blind)
#256E85
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a52c8;
/* rgb */ color: rgb(90, 82, 200);
/* oklch */ color: oklch(51.3% 0.177 281.2);
Tailwind
colors: {
  custom: {
    50: '#9283d9',
    500: '#5a52c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a52c8;
$custom-light: #9283d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a52c8",
  "rgb": {
    "r": 90,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 244.068,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51317,
    "c": 0.17733,
    "h": 281.2
  },
  "luminance": 0.12378
}

Semantic roles & 50–950 ramp

primary
#5A52C8
secondary
#D0D4A2
accent
#DB4DD2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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