#5142C0#5142C0

#5142C0 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.3% C 0.188 H 281.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5142C0
RGBrgb(81, 66, 192)
HSLhsl(247, 50%, 51%)
HSVhsv(247, 66%, 75%)
CMYKcmyk(57.8%, 65.6%, 0%, 24.7%)
CIE-LABlab(36.84, 41.57, -64.12)
CIE-LCHlch(36.84, 76.42, 302.95°)
OKLaboklab(47.31% 0.0386 -0.1845)
OKLCHoklch(47.31% 0.188 281.8)
XYZxyz(14.8530, 9.4506, 50.9004)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142C0 #B1C042
analogous
#4272C0 #5142C0 #9042C0
triadic
#5142C0 #C05142 #42C051
tetradic
#5142C0 #C04272 #B1C042 #42C090
square
#5142C0 #C04272 #B1C042 #42C090
split-complementary
#5142C0 #C09042 #72C042
monochromatic
#2A2266 #3D3194 #5142C0 #7B70CF #A69EDF

Accessibility & contrast

On white

7.27
#5142C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5142C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5142C0
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142C0#FFFFFF#000000##FFFFFF
##5142C01.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC4
Deuteranopia (green-blind)
#0052BE
Tritanopia (blue-blind)
#0F627B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5142c0;
/* rgb */ color: rgb(81, 66, 192);
/* oklch */ color: oklch(47.3% 0.188 281.8);
Tailwind
colors: {
  custom: {
    50: '#8d77d4',
    500: '#5142c0',
    950: '#000000',
  },
}
SCSS
$custom: #5142c0;
$custom-light: #8d77d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5142c0",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 192
  },
  "hsl": {
    "h": 247.143,
    "s": 50,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47307,
    "c": 0.18847,
    "h": 281.8
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#5142C0
secondary
#C4CB93
accent
#DA4EC9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5142C0

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

Preview Lab → · Contrast checker → · Palette generator →

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