#5F52E3#5F52E3

#5F52E3 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.8% C 0.211 H 280.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5F52E3
RGBrgb(95, 82, 227)
HSLhsl(245, 72%, 61%)
HSVhsv(245, 64%, 89%)
CMYKcmyk(58.1%, 63.9%, 0%, 11%)
CIE-LABlab(44.25, 45.41, -72.14)
CIE-LCHlch(44.25, 85.24, 302.19°)
OKLaboklab(53.84% 0.039 -0.2076)
OKLCHoklch(53.84% 0.211 280.6)
XYZxyz(21.5974, 14.0120, 74.2247)
Luminance0.1401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52E3 #D6E352
analogous
#528EE3 #5F52E3 #A752E3
triadic
#5F52E3 #E35F52 #52E35F
tetradic
#5F52E3 #E3528E #D6E352 #52E3A7
square
#5F52E3 #E3528E #D6E352 #52E3A7
split-complementary
#5F52E3 #E3A752 #8EE352
monochromatic
#261AA1 #3323D5 #5F52E3 #9087EC #C0BBF4

Accessibility & contrast

On white

5.52
#5F52E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5F52E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52E3
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52E3#FFFFFF#000000##FFFFFF
##5F52E31.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE8
Deuteranopia (green-blind)
#0063E0
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f52e3;
/* rgb */ color: rgb(95, 82, 227);
/* oklch */ color: oklch(53.8% 0.211 280.6);
Tailwind
colors: {
  custom: {
    50: '#9983ed',
    500: '#5f52e3',
    950: '#000000',
  },
}
SCSS
$custom: #5f52e3;
$custom-light: #9983ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52e3",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 227
  },
  "hsl": {
    "h": 245.379,
    "s": 72.139,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53843,
    "c": 0.21119,
    "h": 280.6
  },
  "luminance": 0.14014
}

Semantic roles & 50–950 ramp

primary
#5F52E3
secondary
#DFE4AD
accent
#D411C3
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5F52E3

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

Preview Lab → · Contrast checker → · Palette generator →

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