#5145A6#5145A6

#5145A6 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.7% C 0.150 H 284.4°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5145A6
RGBrgb(81, 69, 166)
HSLhsl(247, 41%, 46%)
HSVhsv(247, 58%, 65%)
CMYKcmyk(51.2%, 58.4%, 0%, 34.9%)
CIE-LABlab(35.51, 31.56, -50.88)
CIE-LCHlch(35.51, 59.87, 301.81°)
OKLaboklab(45.71% 0.0373 -0.1455)
OKLCHoklch(45.71% 0.15 284.4)
XYZxyz(12.4023, 8.7581, 37.1060)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145A6 #9AA645
analogous
#4569A6 #5145A6 #8145A6
triadic
#5145A6 #A65145 #45A651
tetradic
#5145A6 #A64569 #9AA645 #45A681
square
#5145A6 #A64569 #9AA645 #45A681
split-complementary
#5145A6 #A68145 #69A645
monochromatic
#272150 #3C337B #5145A6 #7368C0 #9B93D2

Accessibility & contrast

On white

7.63
#5145A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5145A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145A6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145A6#FFFFFF#000000##FFFFFF
##5145A61.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#315B6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5145a6;
/* rgb */ color: rgb(81, 69, 166);
/* oklch */ color: oklch(45.7% 0.150 284.4);
Tailwind
colors: {
  custom: {
    50: '#8979c1',
    500: '#5145a6',
    950: '#000000',
  },
}
SCSS
$custom: #5145a6;
$custom-light: #8979c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5145a6",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 247.423,
    "s": 41.277,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45709,
    "c": 0.15024,
    "h": 284.4
  },
  "luminance": 0.08759
}

Semantic roles & 50–950 ramp

primary
#5145A6
secondary
#B7BE89
accent
#D157C2
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0912
muted
#7D7B81

Preview Lab

Preview with #5145A6

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

Preview Lab → · Contrast checker → · Palette generator →

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