#5F47DC#5F47DC

#5F47DC is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.6% C 0.215 H 283.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5F47DC
RGBrgb(95, 71, 220)
HSLhsl(250, 68%, 57%)
HSVhsv(250, 68%, 86%)
CMYKcmyk(56.8%, 67.7%, 0%, 13.7%)
CIE-LABlab(41.38, 49.49, -72.84)
CIE-LCHlch(41.38, 88.06, 304.19°)
OKLaboklab(51.6% 0.0491 -0.2096)
OKLCHoklch(51.6% 0.215 283.2)
XYZxyz(19.8868, 12.1054, 68.9849)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47DC #C4DC47
analogous
#477ADC #5F47DC #A947DC
triadic
#5F47DC #DC5F47 #47DC5F
tetradic
#5F47DC #DC477A #C4DC47 #47DCA9
square
#5F47DC #DC477A #C4DC47 #47DCA9
split-complementary
#5F47DC #DCA947 #7ADC47
monochromatic
#2D1B8E #3E25C1 #5F47DC #8C7AE6 #B8AEF0

Accessibility & contrast

On white

6.14
#5F47DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5F47DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47DC
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47DC#FFFFFF#000000##FFFFFF
##5F47DC1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#1B6E8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f47dc;
/* rgb */ color: rgb(95, 71, 220);
/* oklch */ color: oklch(51.6% 0.215 283.2);
Tailwind
colors: {
  custom: {
    50: '#987ce8',
    500: '#5f47dc',
    950: '#000000',
  },
}
SCSS
$custom: #5f47dc;
$custom-light: #987ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47dc",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 249.664,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51595,
    "c": 0.2153,
    "h": 283.2
  },
  "luminance": 0.12107
}

Semantic roles & 50–950 ramp

primary
#5F47DC
secondary
#D4DEA1
accent
#EB3DCF
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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