#5142C8#5142C8

#5142C8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 48.0% C 0.199 H 280.9°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5142C8
RGBrgb(81, 66, 200)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 67%, 78%)
CMYKcmyk(59.5%, 67%, 0%, 21.6%)
CIE-LABlab(37.51, 44.07, -67.70)
CIE-LCHlch(37.51, 80.78, 303.07°)
OKLaboklab(48% 0.0376 -0.195)
OKLCHoklch(48% 0.199 280.9)
XYZxyz(15.7636, 9.8148, 55.6962)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142C8 #B9C842
analogous
#4276C8 #5142C8 #9442C8
triadic
#5142C8 #C85142 #42C851
tetradic
#5142C8 #C84276 #B9C842 #42C894
square
#5142C8 #C84276 #B9C842 #42C894
split-complementary
#5142C8 #C89442 #76C842
monochromatic
#29206F #3B2E9F #5142C8 #7D71D6 #A8A1E4

Accessibility & contrast

On white

7.09
#5142C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5142C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142C8
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142C8#FFFFFF#000000##FFFFFF
##5142C81.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5142c8;
/* rgb */ color: rgb(81, 66, 200);
/* oklch */ color: oklch(48.0% 0.199 280.9);
Tailwind
colors: {
  custom: {
    50: '#8e78da',
    500: '#5142c8',
    950: '#000000',
  },
}
SCSS
$custom: #5142c8;
$custom-light: #8e78da;
$custom-dark: #000000;
JSON
{
  "hex": "#5142c8",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 246.716,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.19854,
    "h": 280.9
  },
  "luminance": 0.09816
}

Semantic roles & 50–950 ramp

primary
#5142C8
secondary
#CAD096
accent
#DE4ACE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5142C8

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

Preview Lab → · Contrast checker → · Palette generator →

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