#5145C7#5145C7

#5145C7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.4% C 0.194 H 280.5°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5145C7
RGBrgb(81, 69, 199)
HSLhsl(246, 54%, 53%)
HSVhsv(246, 65%, 78%)
CMYKcmyk(59.3%, 65.3%, 0%, 22%)
CIE-LABlab(38.07, 42.01, -66.19)
CIE-LCHlch(38.07, 78.40, 302.40°)
OKLaboklab(48.38% 0.0352 -0.1905)
OKLCHoklch(48.38% 0.194 280.5)
XYZxyz(15.8270, 10.1280, 55.1426)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C7 #BBC745
analogous
#457AC7 #5145C7 #9245C7
triadic
#5145C7 #C75145 #45C751
tetradic
#5145C7 #C7457A #BBC745 #45C792
square
#5145C7 #C7457A #BBC745 #45C792
split-complementary
#5145C7 #C79245 #7AC745
monochromatic
#292270 #3A309F #5145C7 #7D74D5 #A9A3E3

Accessibility & contrast

On white

6.94
#5145C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5145C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145C7
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C7#FFFFFF#000000##FFFFFF
##5145C71.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5145c7;
/* rgb */ color: rgb(81, 69, 199);
/* oklch */ color: oklch(48.4% 0.194 280.5);
Tailwind
colors: {
  custom: {
    50: '#8e7ad9',
    500: '#5145c7',
    950: '#000000',
  },
}
SCSS
$custom: #5145c7;
$custom-light: #8e7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c7",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 245.538,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48381,
    "c": 0.19377,
    "h": 280.5
  },
  "luminance": 0.10129
}

Semantic roles & 50–950 ramp

primary
#5145C7
secondary
#CBD098
accent
#DD4BD0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5145C7

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

Preview Lab → · Contrast checker → · Palette generator →

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