#5F52CA#5F52CA

#5F52CA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.179 H 283.1°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#5F52CA
RGBrgb(95, 82, 202)
HSLhsl(247, 53%, 56%)
HSVhsv(247, 59%, 79%)
CMYKcmyk(53%, 59.4%, 0%, 20.8%)
CIE-LABlab(42.35, 37.68, -60.91)
CIE-LCHlch(42.35, 71.62, 301.74°)
OKLaboklab(51.86% 0.0406 -0.1746)
OKLCHoklch(51.86% 0.179 283.1)
XYZxyz(18.3940, 12.7307, 57.3537)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52CA #BDCA52
analogous
#5281CA #5F52CA #9B52CA
triadic
#5F52CA #CA5F52 #52CA5F
tetradic
#5F52CA #CA5281 #BDCA52 #52CA9B
square
#5F52CA #CA5281 #BDCA52 #52CA9B
split-complementary
#5F52CA #CA9B52 #81CA52
monochromatic
#2F267C #4134AB #5F52CA #8A81D8 #B6B0E7

Accessibility & contrast

On white

5.92
#5F52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5F52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52CA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52CA#FFFFFF#000000##FFFFFF
##5F52CA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#326E86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f52ca;
/* rgb */ color: rgb(95, 82, 202);
/* oklch */ color: oklch(51.9% 0.179 283.1);
Tailwind
colors: {
  custom: {
    50: '#9583db',
    500: '#5f52ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f52ca;
$custom-light: #9583db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52ca",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 246.5,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51864,
    "c": 0.17922,
    "h": 283.1
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#5F52CA
secondary
#CFD5A3
accent
#DD4BCD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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