#5145C5#5145C5

#5145C5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 48.2% C 0.191 H 280.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5145C5
RGBrgb(81, 69, 197)
HSLhsl(246, 52%, 52%)
HSVhsv(246, 65%, 77%)
CMYKcmyk(58.9%, 65%, 0%, 22.7%)
CIE-LABlab(37.91, 41.38, -65.30)
CIE-LCHlch(37.91, 77.30, 302.36°)
OKLaboklab(48.21% 0.0354 -0.1879)
OKLCHoklch(48.21% 0.191 280.7)
XYZxyz(15.5963, 10.0357, 53.9277)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C5 #B9C545
analogous
#4579C5 #5145C5 #9145C5
triadic
#5145C5 #C55145 #45C551
tetradic
#5145C5 #C54579 #B9C545 #45C591
square
#5145C5 #C54579 #B9C545 #45C591
split-complementary
#5145C5 #C59145 #79C545
monochromatic
#29226D #3B319C #5145C5 #7D74D4 #A8A2E2

Accessibility & contrast

On white

6.98
#5145C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5145C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145C5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C5#FFFFFF#000000##FFFFFF
##5145C51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5145c5;
/* rgb */ color: rgb(81, 69, 197);
/* oklch */ color: oklch(48.2% 0.191 280.7);
Tailwind
colors: {
  custom: {
    50: '#8e7ad8',
    500: '#5145c5',
    950: '#000000',
  },
}
SCSS
$custom: #5145c5;
$custom-light: #8e7ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c5",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 245.625,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4821,
    "c": 0.19122,
    "h": 280.7
  },
  "luminance": 0.10037
}

Semantic roles & 50–950 ramp

primary
#5145C5
secondary
#CACF97
accent
#DC4CCE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5145C5

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

Preview Lab → · Contrast checker → · Palette generator →

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