#5F52ED#5F52ED

#5F52ED is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.7% C 0.224 H 279.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5F52ED
RGBrgb(95, 82, 237)
HSLhsl(245, 81%, 63%)
HSVhsv(245, 65%, 93%)
CMYKcmyk(59.9%, 65.4%, 0%, 7.1%)
CIE-LABlab(45.05, 48.50, -76.48)
CIE-LCHlch(45.05, 90.56, 302.38°)
OKLaboklab(54.68% 0.0379 -0.2203)
OKLCHoklch(54.68% 0.224 279.8)
XYZxyz(23.0178, 14.5802, 81.7057)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52ED #E0ED52
analogous
#5293ED #5F52ED #AC52ED
triadic
#5F52ED #ED5F52 #52ED5F
tetradic
#5F52ED #ED5293 #E0ED52 #52EDAC
square
#5F52ED #ED5293 #E0ED52 #52EDAC
split-complementary
#5F52ED #EDAC52 #93ED52
monochromatic
#2013B2 #2C1BE7 #5F52ED #9289F3 #C6C1F9

Accessibility & contrast

On white

5.36
#5F52ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5F52ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52ED
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52ED#FFFFFF#000000##FFFFFF
##5F52ED1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F2
Deuteranopia (green-blind)
#0065EA
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f52ed;
/* rgb */ color: rgb(95, 82, 237);
/* oklch */ color: oklch(54.7% 0.224 279.8);
Tailwind
colors: {
  custom: {
    50: '#9a84f4',
    500: '#5f52ed',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ed;
$custom-light: #9a84f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ed",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 237
  },
  "hsl": {
    "h": 245.032,
    "s": 81.152,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54675,
    "c": 0.22354,
    "h": 279.8
  },
  "luminance": 0.14582
}

Semantic roles & 50–950 ramp

primary
#5F52ED
secondary
#E5EAB1
accent
#DE08CC
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52ED

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

Preview Lab → · Contrast checker → · Palette generator →

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