#5F52E8#5F52E8

#5F52E8 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.3% C 0.217 H 280.2°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F52E8
RGBrgb(95, 82, 232)
HSLhsl(245, 77%, 62%)
HSVhsv(245, 65%, 91%)
CMYKcmyk(59.1%, 64.7%, 0%, 9%)
CIE-LABlab(44.65, 46.95, -74.32)
CIE-LCHlch(44.65, 87.91, 302.28°)
OKLaboklab(54.26% 0.0385 -0.214)
OKLCHoklch(54.26% 0.217 280.2)
XYZxyz(22.2975, 14.2921, 77.9119)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52E8 #DBE852
analogous
#5290E8 #5F52E8 #AA52E8
triadic
#5F52E8 #E85F52 #52E85F
tetradic
#5F52E8 #E85290 #DBE852 #52E8AA
square
#5F52E8 #E85290 #DBE852 #52E8AA
split-complementary
#5F52E8 #E8AA52 #90E852
monochromatic
#2316A9 #2E1EDF #5F52E8 #9188EF #C3BEF6

Accessibility & contrast

On white

5.44
#5F52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5F52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52E8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52E8#FFFFFF#000000##FFFFFF
##5F52E81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#0064E5
Tritanopia (blue-blind)
#007896
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f52e8;
/* rgb */ color: rgb(95, 82, 232);
/* oklch */ color: oklch(54.3% 0.217 280.2);
Tailwind
colors: {
  custom: {
    50: '#9a84f0',
    500: '#5f52e8',
    950: '#000000',
  },
}
SCSS
$custom: #5f52e8;
$custom-light: #9a84f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52e8",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 245.2,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54257,
    "c": 0.21739,
    "h": 280.2
  },
  "luminance": 0.14294
}

Semantic roles & 50–950 ramp

primary
#5F52E8
secondary
#E2E7AF
accent
#D90DC7
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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