#5149EC#5149EC

#5149EC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.3% C 0.235 H 276.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5149EC
RGBrgb(81, 73, 236)
HSLhsl(243, 81%, 61%)
HSVhsv(243, 69%, 93%)
CMYKcmyk(65.7%, 69.1%, 0%, 7.5%)
CIE-LABlab(42.11, 51.39, -80.79)
CIE-LCHlch(42.11, 95.75, 302.46°)
OKLaboklab(52.27% 0.0273 -0.2333)
OKLCHoklch(52.27% 0.235 276.7)
XYZxyz(20.9113, 12.5687, 80.6646)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149EC #E4EC49
analogous
#4992EC #5149EC #A349EC
triadic
#5149EC #EC5149 #49EC51
tetradic
#5149EC #EC4992 #E4EC49 #49ECA3
square
#5149EC #EC4992 #E4EC49 #49ECA3
split-complementary
#5149EC #ECA349 #92EC49
monochromatic
#1912A9 #2117E0 #5149EC #8680F2 #BBB8F8

Accessibility & contrast

On white

5.98
#5149EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5149EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149EC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149EC#FFFFFF#000000##FFFFFF
##5149EC1.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)
#006AF1
Deuteranopia (green-blind)
#005CE9
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5149ec;
/* rgb */ color: rgb(81, 73, 236);
/* oklch */ color: oklch(52.3% 0.235 276.7);
Tailwind
colors: {
  custom: {
    50: '#947df3',
    500: '#5149ec',
    950: '#000000',
  },
}
SCSS
$custom: #5149ec;
$custom-light: #947df3;
$custom-dark: #000000;
JSON
{
  "hex": "#5149ec",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 236
  },
  "hsl": {
    "h": 242.945,
    "s": 81.095,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52269,
    "c": 0.23489,
    "h": 276.7
  },
  "luminance": 0.12571
}

Semantic roles & 50–950 ramp

primary
#5149EC
secondary
#E4E7A9
accent
#DD08D3
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5149EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5149EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva