#5F52DA#5F52DA

#5F52DA is a mid, vivid blue. Relative luminance 0.135; OKLCH L 53.1% C 0.200 H 281.5°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5F52DA
RGBrgb(95, 82, 218)
HSLhsl(246, 65%, 59%)
HSVhsv(246, 62%, 85%)
CMYKcmyk(56.4%, 62.4%, 0%, 14.5%)
CIE-LABlab(43.55, 42.63, -68.16)
CIE-LCHlch(43.55, 80.39, 302.02°)
OKLaboklab(53.11% 0.0398 -0.1959)
OKLCHoklch(53.11% 0.2 281.5)
XYZxyz(20.3876, 13.5281, 67.8529)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52DA #CDDA52
analogous
#5289DA #5F52DA #A352DA
triadic
#5F52DA #DA5F52 #52DA5F
tetradic
#5F52DA #DA5289 #CDDA52 #52DAA3
square
#5F52DA #DA5289 #CDDA52 #52DAA3
split-complementary
#5F52DA #DAA352 #89DA52
monochromatic
#2A1F92 #392AC5 #5F52DA #8E84E5 #BCB7F0

Accessibility & contrast

On white

5.67
#5F52DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5F52DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52DA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52DA#FFFFFF#000000##FFFFFF
##5F52DA1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDE
Deuteranopia (green-blind)
#0062D7
Tritanopia (blue-blind)
#1C748E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5f52da;
/* rgb */ color: rgb(95, 82, 218);
/* oklch */ color: oklch(53.1% 0.200 281.5);
Tailwind
colors: {
  custom: {
    50: '#9783e6',
    500: '#5f52da',
    950: '#000000',
  },
}
SCSS
$custom: #5f52da;
$custom-light: #9783e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52da",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 218
  },
  "hsl": {
    "h": 245.735,
    "s": 64.762,
    "l": 58.824
  },
  "oklch": {
    "l": 0.53113,
    "c": 0.19987,
    "h": 281.5
  },
  "luminance": 0.13529
}

Semantic roles & 50–950 ramp

primary
#5F52DA
secondary
#DADFA9
accent
#E840D8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5F52DA

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

Preview Lab → · Contrast checker → · Palette generator →

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