#5F47E6#5F47E6

#5F47E6 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.5% C 0.227 H 282.1°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#5F47E6
RGBrgb(95, 71, 230)
HSLhsl(249, 76%, 59%)
HSVhsv(249, 69%, 90%)
CMYKcmyk(58.7%, 69.1%, 0%, 9.8%)
CIE-LABlab(42.23, 52.47, -77.14)
CIE-LCHlch(42.23, 93.29, 304.22°)
OKLaboklab(52.47% 0.0475 -0.2222)
OKLCHoklch(52.47% 0.227 282.1)
XYZxyz(21.2510, 12.6511, 76.1696)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47E6 #CEE647
analogous
#477FE6 #5F47E6 #AF47E6
triadic
#5F47E6 #E65F47 #47E65F
tetradic
#5F47E6 #E6477F #CEE647 #47E6AF
square
#5F47E6 #E6477F #CEE647 #47E6AF
split-complementary
#5F47E6 #E6AF47 #7FE647
monochromatic
#2A159D #381DD3 #5F47E6 #8E7DED #BDB3F5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F47E6#FFFFFF#000000##FFFFFF
##5F47E61.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)
#0069EB
Deuteranopia (green-blind)
#005EE3
Tritanopia (blue-blind)
#007191
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f47e6;
/* rgb */ color: rgb(95, 71, 230);
/* oklch */ color: oklch(52.5% 0.227 282.1);
Tailwind
colors: {
  custom: {
    50: '#9a7cef',
    500: '#5f47e6',
    950: '#000000',
  },
}
SCSS
$custom: #5f47e6;
$custom-light: #9a7cef;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47e6",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 230
  },
  "hsl": {
    "h": 249.057,
    "s": 76.077,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52465,
    "c": 0.22726,
    "h": 282.1
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

primary
#5F47E6
secondary
#DAE4A5
accent
#F335D6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F47E6

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

Preview Lab → · Contrast checker → · Palette generator →

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