#5146C2#5146C2

#5146C2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.1% C 0.186 H 280.8°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5146C2
RGBrgb(81, 70, 194)
HSLhsl(245, 50%, 52%)
HSVhsv(245, 64%, 76%)
CMYKcmyk(58.2%, 63.9%, 0%, 23.9%)
CIE-LABlab(37.88, 39.84, -63.58)
CIE-LCHlch(37.88, 75.03, 302.07°)
OKLaboklab(48.12% 0.0348 -0.1829)
OKLCHoklch(48.12% 0.186 280.8)
XYZxyz(15.3180, 10.0236, 52.1560)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146C2 #B7C246
analogous
#4679C2 #5146C2 #8F46C2
triadic
#5146C2 #C25146 #46C251
tetradic
#5146C2 #C24679 #B7C246 #46C28F
square
#5146C2 #C24679 #B7C246 #46C28F
split-complementary
#5146C2 #C28F46 #79C246
monochromatic
#29236A #3B3299 #5146C2 #7C74D1 #A8A2E0

Accessibility & contrast

On white

6.99
#5146C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5146C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146C2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146C2#FFFFFF#000000##FFFFFF
##5146C21.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0055C0
Tritanopia (blue-blind)
#07657D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5146c2;
/* rgb */ color: rgb(81, 70, 194);
/* oklch */ color: oklch(48.1% 0.186 280.8);
Tailwind
colors: {
  custom: {
    50: '#8d7ad5',
    500: '#5146c2',
    950: '#000000',
  },
}
SCSS
$custom: #5146c2;
$custom-light: #8d7ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5146c2",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 245.323,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48119,
    "c": 0.18617,
    "h": 280.8
  },
  "luminance": 0.10025
}

Semantic roles & 50–950 ramp

primary
#5146C2
secondary
#C8CD97
accent
#DA4ECD
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5146C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5146C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva