#5142DE#5142DE

#5142DE is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.225 H 278.7°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5142DE
RGBrgb(81, 66, 222)
HSLhsl(246, 70%, 56%)
HSVhsv(246, 70%, 87%)
CMYKcmyk(63.5%, 70.3%, 0%, 12.9%)
CIE-LABlab(39.44, 50.91, -77.21)
CIE-LCHlch(39.44, 92.48, 303.40°)
OKLaboklab(49.98% 0.0342 -0.2228)
OKLCHoklch(49.98% 0.225 278.7)
XYZxyz(18.5221, 10.9182, 70.2244)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142DE #CFDE42
analogous
#4281DE #5142DE #9F42DE
triadic
#5142DE #DE5142 #42DE51
tetradic
#5142DE #DE4281 #CFDE42 #42DE9F
square
#5142DE #DE4281 #CFDE42 #42DE9F
split-complementary
#5142DE #DE9F42 #81DE42
monochromatic
#24198D #3122C1 #5142DE #8176E7 #B1AAF0

Accessibility & contrast

On white

6.60
#5142DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5142DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142DE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142DE#FFFFFF#000000##FFFFFF
##5142DE1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E3
Deuteranopia (green-blind)
#0057DB
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5142de;
/* rgb */ color: rgb(81, 66, 222);
/* oklch */ color: oklch(50.0% 0.225 278.7);
Tailwind
colors: {
  custom: {
    50: '#9278ea',
    500: '#5142de',
    950: '#000000',
  },
}
SCSS
$custom: #5142de;
$custom-light: #9278ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5142de",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 245.769,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.49979,
    "c": 0.22542,
    "h": 278.7
  },
  "luminance": 0.1092
}

Semantic roles & 50–950 ramp

primary
#5142DE
secondary
#D8DE9E
accent
#ED3BDC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5142DE

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

Preview Lab → · Contrast checker → · Palette generator →

#5142DE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva