#5F52EE#5F52EE

#5F52EE is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.8% C 0.225 H 279.7°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5F52EE
RGBrgb(95, 82, 238)
HSLhsl(245, 82%, 63%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(60.1%, 65.5%, 0%, 6.7%)
CIE-LABlab(45.14, 48.80, -76.91)
CIE-LCHlch(45.14, 91.09, 302.40°)
OKLaboklab(54.76% 0.0378 -0.2215)
OKLCHoklch(54.76% 0.225 279.7)
XYZxyz(23.1643, 14.6388, 82.4772)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52EE #E1EE52
analogous
#5293EE #5F52EE #AD52EE
triadic
#5F52EE #EE5F52 #52EE5F
tetradic
#5F52EE #EE5293 #E1EE52 #52EEAD
square
#5F52EE #EE5293 #E1EE52 #52EEAD
split-complementary
#5F52EE #EEAD52 #93EE52
monochromatic
#1F12B4 #2B1AE9 #5F52EE #938AF3 #C6C1F9

Accessibility & contrast

On white

5.35
#5F52EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5F52EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52EE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52EE#FFFFFF#000000##FFFFFF
##5F52EE1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F3
Deuteranopia (green-blind)
#0065EB
Tritanopia (blue-blind)
#007A99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f52ee;
/* rgb */ color: rgb(95, 82, 238);
/* oklch */ color: oklch(54.8% 0.225 279.7);
Tailwind
colors: {
  custom: {
    50: '#9b84f5',
    500: '#5f52ee',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ee;
$custom-light: #9b84f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ee",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 238
  },
  "hsl": {
    "h": 245,
    "s": 82.105,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5476,
    "c": 0.22476,
    "h": 279.7
  },
  "luminance": 0.14641
}

Semantic roles & 50–950 ramp

primary
#5F52EE
secondary
#E5EAB2
accent
#DE07CD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52EE

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

Preview Lab → · Contrast checker → · Palette generator →

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