#5F52C8#5F52C8

#5F52C8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.7% C 0.177 H 283.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5F52C8
RGBrgb(95, 82, 200)
HSLhsl(247, 52%, 55%)
HSVhsv(247, 59%, 78%)
CMYKcmyk(52.5%, 59%, 0%, 21.6%)
CIE-LABlab(42.21, 37.07, -59.99)
CIE-LCHlch(42.21, 70.52, 301.71°)
OKLaboklab(51.71% 0.0407 -0.1718)
OKLCHoklch(51.71% 0.177 283.3)
XYZxyz(18.1588, 12.6366, 56.1147)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F52C8 #BBC852
analogous
#5280C8 #5F52C8 #9A52C8
triadic
#5F52C8 #C85F52 #52C85F
tetradic
#5F52C8 #C85280 #BBC852 #52C89A
square
#5F52C8 #C85280 #BBC852 #52C89A
split-complementary
#5F52C8 #C89A52 #80C852
monochromatic
#302779 #4235A8 #5F52C8 #8A80D7 #B5AFE6

Accessibility & contrast

On white

5.95
#5F52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5F52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F52C8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F52C8#FFFFFF#000000##FFFFFF
##5F52C81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CC
Deuteranopia (green-blind)
#0060C6
Tritanopia (blue-blind)
#346E85
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f52c8;
/* rgb */ color: rgb(95, 82, 200);
/* oklch */ color: oklch(51.7% 0.177 283.3);
Tailwind
colors: {
  custom: {
    50: '#9583d9',
    500: '#5f52c8',
    950: '#000000',
  },
}
SCSS
$custom: #5f52c8;
$custom-light: #9583d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f52c8",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 246.61,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.17659,
    "h": 283.3
  },
  "luminance": 0.12638
}

Semantic roles & 50–950 ramp

primary
#5F52C8
secondary
#CED4A2
accent
#DB4DCB
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5F52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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