#5F52CC#5F52CC

#5F52CC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.182 H 282.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5F52CC
RGBrgb(95, 82, 204)
HSLhsl(246, 54%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(53.4%, 59.8%, 0%, 20%)
CIE-LABlab(42.50, 38.30, -61.83)
CIE-LCHlch(42.50, 72.73, 301.78°)
OKLaboklab(52.02% 0.0405 -0.1773)
OKLCHoklch(52.02% 0.182 282.9)
XYZxyz(18.6324, 12.8260, 58.6089)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52CC #BFCC52
analogous
#5282CC #5F52CC #9C52CC
triadic
#5F52CC #CC5F52 #52CC5F
tetradic
#5F52CC #CC5282 #BFCC52 #52CC9C
square
#5F52CC #CC5282 #BFCC52 #52CC9C
split-complementary
#5F52CC #CC9C52 #82CC52
monochromatic
#2F257E #4033AE #5F52CC #8B81DA #B6B1E8

Accessibility & contrast

On white

5.89
#5F52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5F52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52CC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52CC#FFFFFF#000000##FFFFFF
##5F52CC1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D0
Deuteranopia (green-blind)
#0060C9
Tritanopia (blue-blind)
#306F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f52cc;
/* rgb */ color: rgb(95, 82, 204);
/* oklch */ color: oklch(52.0% 0.182 282.9);
Tailwind
colors: {
  custom: {
    50: '#9583dc',
    500: '#5f52cc',
    950: '#000000',
  },
}
SCSS
$custom: #5f52cc;
$custom-light: #9583dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52cc",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 246.393,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.52016,
    "c": 0.18184,
    "h": 282.9
  },
  "luminance": 0.12827
}

Semantic roles & 50–950 ramp

primary
#5F52CC
secondary
#D1D6A4
accent
#DE4ACE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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