#5147F0#5147F0

#5147F0 is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 52.4% C 0.242 H 276.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5147F0
RGBrgb(81, 71, 240)
HSLhsl(244, 85%, 61%)
HSVhsv(244, 70%, 94%)
CMYKcmyk(66.3%, 70.4%, 0%, 5.9%)
CIE-LABlab(42.07, 53.73, -83.10)
CIE-LCHlch(42.07, 98.96, 302.89°)
OKLaboklab(52.35% 0.028 -0.24)
OKLCHoklch(52.35% 0.242 276.6)
XYZxyz(21.3696, 12.5452, 83.7165)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147F0 #E6F047
analogous
#4791F0 #5147F0 #A547F0
triadic
#5147F0 #F05147 #47F051
tetradic
#5147F0 #F04791 #E6F047 #47F0A5
square
#5147F0 #F04791 #E6F047 #47F0A5
split-complementary
#5147F0 #F0A547 #91F047
monochromatic
#180EAE #1F13E7 #5147F0 #8780F5 #BCB8F9

Accessibility & contrast

On white

5.98
#5147F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5147F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147F0
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147F0#FFFFFF#000000##FFFFFF
##5147F01.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AF5
Deuteranopia (green-blind)
#005CED
Tritanopia (blue-blind)
#007697
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5147f0;
/* rgb */ color: rgb(81, 71, 240);
/* oklch */ color: oklch(52.4% 0.242 276.6);
Tailwind
colors: {
  custom: {
    50: '#957cf6',
    500: '#5147f0',
    950: '#000000',
  },
}
SCSS
$custom: #5147f0;
$custom-light: #957cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#5147f0",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 240
  },
  "hsl": {
    "h": 243.55,
    "s": 84.925,
    "l": 60.98
  },
  "oklch": {
    "l": 0.52353,
    "c": 0.24167,
    "h": 276.6
  },
  "luminance": 0.12547
}

Semantic roles & 50–950 ramp

primary
#5147F0
secondary
#E5E9AA
accent
#E104D4
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5147F0

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

Preview Lab → · Contrast checker → · Palette generator →

#5147F0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva