#5E52F1#5E52F1

#5E52F1 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.229 H 279.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5E52F1
RGBrgb(94, 82, 241)
HSLhsl(245, 85%, 63%)
HSVhsv(245, 66%, 95%)
CMYKcmyk(61%, 66%, 0%, 5.5%)
CIE-LABlab(45.31, 49.58, -78.32)
CIE-LCHlch(45.31, 92.69, 302.34°)
OKLaboklab(54.94% 0.0362 -0.2257)
OKLCHoklch(54.94% 0.229 279.1)
XYZxyz(23.5055, 14.7634, 84.8130)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E52F1 #E5F152
analogous
#5295F1 #5E52F1 #AD52F1
triadic
#5E52F1 #F15E52 #52F15E
tetradic
#5E52F1 #F15295 #E5F152 #52F1AD
square
#5E52F1 #F15295 #E5F152 #52F1AD
split-complementary
#5E52F1 #F1AD52 #95F152
monochromatic
#1C0FBA #2919EC #5E52F1 #938BF6 #C7C3FA

Accessibility & contrast

On white

5.31
#5E52F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5E52F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E52F1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E52F1#FFFFFF#000000##FFFFFF
##5E52F11.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F6
Deuteranopia (green-blind)
#0065EE
Tritanopia (blue-blind)
#007B9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5e52f1;
/* rgb */ color: rgb(94, 82, 241);
/* oklch */ color: oklch(54.9% 0.229 279.1);
Tailwind
colors: {
  custom: {
    50: '#9b84f7',
    500: '#5e52f1',
    950: '#000000',
  },
}
SCSS
$custom: #5e52f1;
$custom-light: #9b84f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e52f1",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 241
  },
  "hsl": {
    "h": 244.528,
    "s": 85.027,
    "l": 63.333
  },
  "oklch": {
    "l": 0.54942,
    "c": 0.2286,
    "h": 279.1
  },
  "luminance": 0.14765
}

Semantic roles & 50–950 ramp

primary
#5E52F1
secondary
#E7ECB3
accent
#E204D1
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E52F1

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

Preview Lab → · Contrast checker → · Palette generator →

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