#5F52DC#5F52DC

#5F52DC is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.3% C 0.202 H 281.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5F52DC
RGBrgb(95, 82, 220)
HSLhsl(246, 66%, 59%)
HSVhsv(246, 63%, 86%)
CMYKcmyk(56.8%, 62.7%, 0%, 13.7%)
CIE-LABlab(43.70, 43.25, -69.05)
CIE-LCHlch(43.70, 81.48, 302.06°)
OKLaboklab(53.27% 0.0396 -0.1985)
OKLCHoklch(53.27% 0.202 281.3)
XYZxyz(20.6508, 13.6334, 69.2396)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52DC #CFDC52
analogous
#528ADC #5F52DC #A452DC
triadic
#5F52DC #DC5F52 #52DC5F
tetradic
#5F52DC #DC528A #CFDC52 #52DCA4
square
#5F52DC #DC528A #CFDC52 #52DCA4
split-complementary
#5F52DC #DCA452 #8ADC52
monochromatic
#291E95 #3829C8 #5F52DC #8E85E6 #BDB8F1

Accessibility & contrast

On white

5.63
#5F52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5F52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52DC
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52DC#FFFFFF#000000##FFFFFF
##5F52DC1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE0
Deuteranopia (green-blind)
#0062D9
Tritanopia (blue-blind)
#18748F
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f52dc;
/* rgb */ color: rgb(95, 82, 220);
/* oklch */ color: oklch(53.3% 0.202 281.3);
Tailwind
colors: {
  custom: {
    50: '#9883e8',
    500: '#5f52dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f52dc;
$custom-light: #9883e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52dc",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 245.652,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53274,
    "c": 0.2024,
    "h": 281.3
  },
  "luminance": 0.13635
}

Semantic roles & 50–950 ramp

primary
#5F52DC
secondary
#DBE0AA
accent
#E93FD9
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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