#5F47E4#5F47E4

#5F47E4 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.3% C 0.225 H 282.3°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#5F47E4
RGBrgb(95, 71, 228)
HSLhsl(249, 74%, 59%)
HSVhsv(249, 69%, 89%)
CMYKcmyk(58.3%, 68.9%, 0%, 10.6%)
CIE-LABlab(42.06, 51.87, -76.29)
CIE-LCHlch(42.06, 92.25, 304.21°)
OKLaboklab(52.29% 0.0479 -0.2197)
OKLCHoklch(52.29% 0.225 282.3)
XYZxyz(20.9718, 12.5394, 74.6990)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F47E4 #CCE447
analogous
#477DE4 #5F47E4 #AD47E4
triadic
#5F47E4 #E45F47 #47E45F
tetradic
#5F47E4 #E4477D #CCE447 #47E4AD
square
#5F47E4 #E4477D #CCE447 #47E4AD
split-complementary
#5F47E4 #E4AD47 #7DE447
monochromatic
#2B179A #391ECF #5F47E4 #8D7CEC #BCB2F4

Accessibility & contrast

On white

5.99
#5F47E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5F47E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F47E4
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F47E4#FFFFFF#000000##FFFFFF
##5F47E41.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005EE1
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f47e4;
/* rgb */ color: rgb(95, 71, 228);
/* oklch */ color: oklch(52.3% 0.225 282.3);
Tailwind
colors: {
  custom: {
    50: '#9a7cee',
    500: '#5f47e4',
    950: '#000000',
  },
}
SCSS
$custom: #5f47e4;
$custom-light: #9a7cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f47e4",
  "rgb": {
    "r": 95,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 249.172,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.52289,
    "c": 0.22488,
    "h": 282.3
  },
  "luminance": 0.12541
}

Semantic roles & 50–950 ramp

primary
#5F47E4
secondary
#D9E2A4
accent
#F137D5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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