#5145B6#5145B6

#5145B6 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.0% C 0.172 H 282.3°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5145B6
RGBrgb(81, 69, 182)
HSLhsl(246, 45%, 49%)
HSVhsv(246, 62%, 71%)
CMYKcmyk(55.5%, 62.1%, 0%, 28.6%)
CIE-LABlab(36.71, 36.62, -58.45)
CIE-LCHlch(36.71, 68.98, 302.07°)
OKLaboklab(46.97% 0.0367 -0.1678)
OKLCHoklch(46.97% 0.172 282.3)
XYZxyz(13.9624, 9.3821, 45.3221)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145B6 #AAB645
analogous
#4572B6 #5145B6 #8A45B6
triadic
#5145B6 #B65145 #45B651
tetradic
#5145B6 #B64572 #AAB645 #45B68A
square
#5145B6 #B64572 #AAB645 #45B68A
split-complementary
#5145B6 #B68A45 #72B645
monochromatic
#2A235D #3D348A #5145B6 #7970C9 #A29CD9

Accessibility & contrast

On white

7.30
#5145B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5145B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145B6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145B6#FFFFFF#000000##FFFFFF
##5145B61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#216077
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5145b6;
/* rgb */ color: rgb(81, 69, 182);
/* oklch */ color: oklch(47.0% 0.172 282.3);
Tailwind
colors: {
  custom: {
    50: '#8b79cd',
    500: '#5145b6',
    950: '#000000',
  },
}
SCSS
$custom: #5145b6;
$custom-light: #8b79cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5145b6",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 182
  },
  "hsl": {
    "h": 246.372,
    "s": 45.02,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46965,
    "c": 0.17176,
    "h": 282.3
  },
  "luminance": 0.09383
}

Semantic roles & 50–950 ramp

primary
#5145B6
secondary
#C0C691
accent
#D553C7
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5145B6

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

Preview Lab → · Contrast checker → · Palette generator →

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