#5142D3#5142D3

#5142D3 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.212 H 279.8°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5142D3
RGBrgb(81, 66, 211)
HSLhsl(246, 62%, 54%)
HSVhsv(246, 69%, 83%)
CMYKcmyk(61.6%, 68.7%, 0%, 17.3%)
CIE-LABlab(38.46, 47.50, -72.51)
CIE-LCHlch(38.46, 86.68, 303.23°)
OKLaboklab(48.98% 0.036 -0.2091)
OKLCHoklch(48.98% 0.212 279.8)
XYZxyz(17.0957, 10.3476, 62.7118)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142D3 #C4D342
analogous
#427CD3 #5142D3 #9A42D3
triadic
#5142D3 #D35142 #42D351
tetradic
#5142D3 #D3427C #C4D342 #42D39A
square
#5142D3 #D3427C #C4D342 #42D39A
split-complementary
#5142D3 #D39A42 #7CD342
monochromatic
#271D7D #3729AF #5142D3 #7F74DF #ACA5EA

Accessibility & contrast

On white

6.84
#5142D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5142D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142D3
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142D3#FFFFFF#000000##FFFFFF
##5142D31.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0055D0
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5142d3;
/* rgb */ color: rgb(81, 66, 211);
/* oklch */ color: oklch(49.0% 0.212 279.8);
Tailwind
colors: {
  custom: {
    50: '#9078e2',
    500: '#5142d3',
    950: '#000000',
  },
}
SCSS
$custom: #5142d3;
$custom-light: #9078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5142d3",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 246.207,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48976,
    "c": 0.21214,
    "h": 279.8
  },
  "luminance": 0.10349
}

Semantic roles & 50–950 ramp

primary
#5142D3
secondary
#D1D79A
accent
#E542D4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5142D3

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

Preview Lab → · Contrast checker → · Palette generator →

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