#5142CE#5142CE

#5142CE is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.206 H 280.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5142CE
RGBrgb(81, 66, 206)
HSLhsl(246, 59%, 53%)
HSVhsv(246, 68%, 81%)
CMYKcmyk(60.7%, 68%, 0%, 19.2%)
CIE-LABlab(38.02, 45.95, -70.33)
CIE-LCHlch(38.02, 84.01, 303.15°)
OKLaboklab(48.53% 0.0368 -0.2027)
OKLCHoklch(48.53% 0.206 280.3)
XYZxyz(16.4786, 10.1008, 59.4618)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142CE #BFCE42
analogous
#4279CE #5142CE #9742CE
triadic
#5142CE #CE5142 #42CE51
tetradic
#5142CE #CE4279 #BFCE42 #42CE97
square
#5142CE #CE4279 #BFCE42 #42CE97
split-complementary
#5142CE #CE9742 #79CE42
monochromatic
#281F77 #392BA7 #5142CE #7E73DB #AAA3E7

Accessibility & contrast

On white

6.95
#5142CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5142CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142CE
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142CE#FFFFFF#000000##FFFFFF
##5142CE1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5142ce;
/* rgb */ color: rgb(81, 66, 206);
/* oklch */ color: oklch(48.5% 0.206 280.3);
Tailwind
colors: {
  custom: {
    50: '#8f78de',
    500: '#5142ce',
    950: '#000000',
  },
}
SCSS
$custom: #5142ce;
$custom-light: #8f78de;
$custom-dark: #000000;
JSON
{
  "hex": "#5142ce",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 246.429,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48528,
    "c": 0.206,
    "h": 280.3
  },
  "luminance": 0.10102
}

Semantic roles & 50–950 ramp

primary
#5142CE
secondary
#CED498
accent
#E246D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5142CE

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

Preview Lab → · Contrast checker → · Palette generator →

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