#5F52F0#5F52F0

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

Color values

HEX#5F52F0
RGBrgb(95, 82, 240)
HSLhsl(245, 84%, 63%)
HSVhsv(245, 66%, 94%)
CMYKcmyk(60.4%, 65.8%, 0%, 5.9%)
CIE-LABlab(45.30, 49.42, -77.77)
CIE-LCHlch(45.30, 92.14, 302.44°)
OKLaboklab(54.93% 0.0376 -0.2241)
OKLCHoklch(54.93% 0.227 279.5)
XYZxyz(23.4598, 14.7570, 84.0333)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52F0 #E3F052
analogous
#5294F0 #5F52F0 #AE52F0
triadic
#5F52F0 #F05F52 #52F05F
tetradic
#5F52F0 #F05294 #E3F052 #52F0AE
square
#5F52F0 #F05294 #E3F052 #52F0AE
split-complementary
#5F52F0 #F0AE52 #94F052
monochromatic
#1E10B8 #2B1AEB #5F52F0 #938AF5 #C7C3FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F52F0#FFFFFF#000000##FFFFFF
##5F52F01.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)
#0071F5
Deuteranopia (green-blind)
#0065ED
Tritanopia (blue-blind)
#007B9A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5f52f0;
/* rgb */ color: rgb(95, 82, 240);
/* oklch */ color: oklch(54.9% 0.227 279.5);
Tailwind
colors: {
  custom: {
    50: '#9b84f6',
    500: '#5f52f0',
    950: '#000000',
  },
}
SCSS
$custom: #5f52f0;
$custom-light: #9b84f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52f0",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 240
  },
  "hsl": {
    "h": 244.937,
    "s": 84.043,
    "l": 63.137
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.2272,
    "h": 279.5
  },
  "luminance": 0.14759
}

Semantic roles & 50–950 ramp

primary
#5F52F0
secondary
#E7EBB3
accent
#E005CE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5F52F0

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

Preview Lab → · Contrast checker → · Palette generator →

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