#5F52EC#5F52EC

#5F52EC is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.6% C 0.222 H 279.9°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5F52EC
RGBrgb(95, 82, 236)
HSLhsl(245, 80%, 62%)
HSVhsv(245, 65%, 93%)
CMYKcmyk(59.7%, 65.3%, 0%, 7.5%)
CIE-LABlab(44.97, 48.19, -76.05)
CIE-LCHlch(44.97, 90.03, 302.36°)
OKLaboklab(54.59% 0.0381 -0.219)
OKLCHoklch(54.59% 0.222 279.9)
XYZxyz(22.8721, 14.5219, 80.9384)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52EC #DFEC52
analogous
#5292EC #5F52EC #AC52EC
triadic
#5F52EC #EC5F52 #52EC5F
tetradic
#5F52EC #EC5292 #DFEC52 #52ECAC
square
#5F52EC #EC5292 #DFEC52 #52ECAC
split-complementary
#5F52EC #ECAC52 #92EC52
monochromatic
#2113B0 #2C1BE6 #5F52EC #9289F2 #C5C0F8

Accessibility & contrast

On white

5.38
#5F52EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#5F52EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52EC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52EC#FFFFFF#000000##FFFFFF
##5F52EC1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0064E9
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f52ec;
/* rgb */ color: rgb(95, 82, 236);
/* oklch */ color: oklch(54.6% 0.222 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a84f3',
    500: '#5f52ec',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ec;
$custom-light: #9a84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ec",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 245.065,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54591,
    "c": 0.22231,
    "h": 279.9
  },
  "luminance": 0.14524
}

Semantic roles & 50–950 ramp

primary
#5F52EC
secondary
#E4E9B1
accent
#DD09CB
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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