#5149E6#5149E6

#5149E6 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.7% C 0.228 H 277.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5149E6
RGBrgb(81, 73, 230)
HSLhsl(243, 76%, 59%)
HSVhsv(243, 68%, 90%)
CMYKcmyk(64.8%, 68.3%, 0%, 9.8%)
CIE-LABlab(41.57, 49.50, -78.26)
CIE-LCHlch(41.57, 92.61, 302.31°)
OKLaboklab(51.72% 0.0282 -0.2259)
OKLCHoklch(51.72% 0.228 277.1)
XYZxyz(20.0542, 12.2259, 76.1506)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149E6 #DEE649
analogous
#4990E6 #5149E6 #9F49E6
triadic
#5149E6 #E65149 #49E651
tetradic
#5149E6 #E64990 #DEE649 #49E69F
square
#5149E6 #E64990 #DEE649 #49E69F
split-complementary
#5149E6 #E69F49 #90E649
monochromatic
#1D169F #271DD5 #5149E6 #847FED #B8B5F5

Accessibility & contrast

On white

6.09
#5149E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5149E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149E6
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149E6#FFFFFF#000000##FFFFFF
##5149E61.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069EB
Deuteranopia (green-blind)
#005BE3
Tritanopia (blue-blind)
#007392
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5149e6;
/* rgb */ color: rgb(81, 73, 230);
/* oklch */ color: oklch(51.7% 0.228 277.1);
Tailwind
colors: {
  custom: {
    50: '#937def',
    500: '#5149e6',
    950: '#000000',
  },
}
SCSS
$custom: #5149e6;
$custom-light: #937def;
$custom-dark: #000000;
JSON
{
  "hex": "#5149e6",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 230
  },
  "hsl": {
    "h": 243.057,
    "s": 75.845,
    "l": 59.412
  },
  "oklch": {
    "l": 0.51724,
    "c": 0.22766,
    "h": 277.1
  },
  "luminance": 0.12228
}

Semantic roles & 50–950 ramp

primary
#5149E6
secondary
#E1E4A7
accent
#F235E9
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5149E6

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

Preview Lab → · Contrast checker → · Palette generator →

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