#5145D6#5145D6

#5145D6 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.7% C 0.212 H 279.0°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5145D6
RGBrgb(81, 69, 214)
HSLhsl(245, 64%, 55%)
HSVhsv(245, 68%, 84%)
CMYKcmyk(62.1%, 67.8%, 0%, 16.1%)
CIE-LABlab(39.34, 46.74, -72.79)
CIE-LCHlch(39.34, 86.50, 302.71°)
OKLaboklab(49.69% 0.0333 -0.2099)
OKLCHoklch(49.69% 0.213 279)
XYZxyz(17.6552, 10.8592, 64.7710)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D6 #CAD645
analogous
#4581D6 #5145D6 #9A45D6
triadic
#5145D6 #D65145 #45D651
tetradic
#5145D6 #D64581 #CAD645 #45D69A
square
#5145D6 #D64581 #CAD645 #45D69A
split-complementary
#5145D6 #D69A45 #81D645
monochromatic
#251D84 #3428B6 #5145D6 #8077E1 #AFA9EC

Accessibility & contrast

On white

6.62
#5145D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5145D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D6
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D6#FFFFFF#000000##FFFFFF
##5145D61.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DA
Deuteranopia (green-blind)
#0057D3
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5145d6;
/* rgb */ color: rgb(81, 69, 214);
/* oklch */ color: oklch(49.7% 0.212 279.0);
Tailwind
colors: {
  custom: {
    50: '#917ae4',
    500: '#5145d6',
    950: '#000000',
  },
}
SCSS
$custom: #5145d6;
$custom-light: #917ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d6",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 244.966,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.2125,
    "h": 279
  },
  "luminance": 0.10861
}

Semantic roles & 50–950 ramp

primary
#5145D6
secondary
#D5DA9D
accent
#E741D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145D6

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

Preview Lab → · Contrast checker → · Palette generator →

#5145D6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva