#5142D4#5142D4

#5142D4 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.213 H 279.7°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5142D4
RGBrgb(81, 66, 212)
HSLhsl(246, 63%, 55%)
HSVhsv(246, 69%, 83%)
CMYKcmyk(61.8%, 68.9%, 0%, 16.9%)
CIE-LABlab(38.55, 47.81, -72.94)
CIE-LCHlch(38.55, 87.21, 303.25°)
OKLaboklab(49.07% 0.0359 -0.2103)
OKLCHoklch(49.07% 0.213 279.7)
XYZxyz(17.2214, 10.3979, 63.3741)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142D4 #C5D442
analogous
#427CD4 #5142D4 #9A42D4
triadic
#5142D4 #D45142 #42D451
tetradic
#5142D4 #D4427C #C5D442 #42D49A
square
#5142D4 #D4427C #C5D442 #42D49A
split-complementary
#5142D4 #D49A42 #7CD442
monochromatic
#271D7F #3628B1 #5142D4 #7F74DF #ADA6EB

Accessibility & contrast

On white

6.82
#5142D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5142D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142D4
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142D4#FFFFFF#000000##FFFFFF
##5142D41.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5142d4;
/* rgb */ color: rgb(81, 66, 212);
/* oklch */ color: oklch(49.1% 0.213 279.7);
Tailwind
colors: {
  custom: {
    50: '#9078e2',
    500: '#5142d4',
    950: '#000000',
  },
}
SCSS
$custom: #5142d4;
$custom-light: #9078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5142d4",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 246.164,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49066,
    "c": 0.21336,
    "h": 279.7
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#5142D4
secondary
#D1D89A
accent
#E642D5
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5142D4

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

Preview Lab → · Contrast checker → · Palette generator →

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