#5F52CD#5F52CD

#5F52CD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.1% C 0.183 H 282.8°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5F52CD
RGBrgb(95, 82, 205)
HSLhsl(246, 55%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(53.7%, 60%, 0%, 19.6%)
CIE-LABlab(42.57, 38.61, -62.29)
CIE-LCHlch(42.57, 73.28, 301.79°)
OKLaboklab(52.09% 0.0405 -0.1786)
OKLCHoklch(52.09% 0.183 282.8)
XYZxyz(18.7527, 12.8742, 59.2426)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52CD #C0CD52
analogous
#5283CD #5F52CD #9D52CD
triadic
#5F52CD #CD5F52 #52CD5F
tetradic
#5F52CD #CD5283 #C0CD52 #52CD9D
square
#5F52CD #CD5283 #C0CD52 #52CD9D
split-complementary
#5F52CD #CD9D52 #83CD52
monochromatic
#2F2580 #4033AF #5F52CD #8B81DB #B7B1E8

Accessibility & contrast

On white

5.87
#5F52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F52CD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52CD#FFFFFF#000000##FFFFFF
##5F52CD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#0060CA
Tritanopia (blue-blind)
#2F6F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f52cd;
/* rgb */ color: rgb(95, 82, 205);
/* oklch */ color: oklch(52.1% 0.183 282.8);
Tailwind
colors: {
  custom: {
    50: '#9583dd',
    500: '#5f52cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f52cd;
$custom-light: #9583dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52cd",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 246.341,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.52093,
    "c": 0.18314,
    "h": 282.8
  },
  "luminance": 0.12875
}

Semantic roles & 50–950 ramp

primary
#5F52CD
secondary
#D1D7A4
accent
#DE49CF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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