#5145D9#5145D9

#5145D9 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.0% C 0.216 H 278.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5145D9
RGBrgb(81, 69, 217)
HSLhsl(245, 66%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62.7%, 68.2%, 0%, 14.9%)
CIE-LABlab(39.60, 47.68, -74.08)
CIE-LCHlch(39.60, 88.10, 302.77°)
OKLaboklab(49.96% 0.0329 -0.2137)
OKLCHoklch(49.96% 0.216 278.8)
XYZxyz(18.0418, 11.0139, 66.8073)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D9 #CDD945
analogous
#4583D9 #5145D9 #9B45D9
triadic
#5145D9 #D95145 #45D951
tetradic
#5145D9 #D94583 #CDD945 #45D99B
square
#5145D9 #D94583 #CDD945 #45D99B
split-complementary
#5145D9 #D99B45 #83D945
monochromatic
#251C88 #3226BB #5145D9 #8178E3 #B0ABEE

Accessibility & contrast

On white

6.56
#5145D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5145D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D9#FFFFFF#000000##FFFFFF
##5145D91.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5145d9;
/* rgb */ color: rgb(81, 69, 217);
/* oklch */ color: oklch(50.0% 0.216 278.8);
Tailwind
colors: {
  custom: {
    50: '#917ae6',
    500: '#5145d9',
    950: '#000000',
  },
}
SCSS
$custom: #5145d9;
$custom-light: #917ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d9",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 244.865,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49959,
    "c": 0.21618,
    "h": 278.8
  },
  "luminance": 0.11015
}

Semantic roles & 50–950 ramp

primary
#5145D9
secondary
#D7DB9E
accent
#E93FDB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145D9

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

Preview Lab → · Contrast checker → · Palette generator →

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