#5F52CE#5F52CE

#5F52CE is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.2% C 0.184 H 282.7°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5F52CE
RGBrgb(95, 82, 206)
HSLhsl(246, 56%, 56%)
HSVhsv(246, 60%, 81%)
CMYKcmyk(53.9%, 60.2%, 0%, 19.2%)
CIE-LABlab(42.65, 38.92, -62.74)
CIE-LCHlch(42.65, 73.83, 301.81°)
OKLaboklab(52.17% 0.0405 -0.1799)
OKLCHoklch(52.17% 0.184 282.7)
XYZxyz(18.8738, 12.9226, 59.8803)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52CE #C1CE52
analogous
#5283CE #5F52CE #9D52CE
triadic
#5F52CE #CE5F52 #52CE5F
tetradic
#5F52CE #CE5283 #C1CE52 #52CE9D
square
#5F52CE #CE5283 #C1CE52 #52CE9D
split-complementary
#5F52CE #CE9D52 #83CE52
monochromatic
#2E2581 #3F32B1 #5F52CE #8B82DC #B7B1E9

Accessibility & contrast

On white

5.86
#5F52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5F52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52CE
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52CE#FFFFFF#000000##FFFFFF
##5F52CE1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D2
Deuteranopia (green-blind)
#0060CB
Tritanopia (blue-blind)
#2E7088
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f52ce;
/* rgb */ color: rgb(95, 82, 206);
/* oklch */ color: oklch(52.2% 0.184 282.7);
Tailwind
colors: {
  custom: {
    50: '#9683de',
    500: '#5f52ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ce;
$custom-light: #9683de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ce",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 246.29,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.18444,
    "h": 282.7
  },
  "luminance": 0.12924
}

Semantic roles & 50–950 ramp

primary
#5F52CE
secondary
#D2D7A4
accent
#DF49CF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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