#5145C6#5145C6

#5145C6 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 48.3% C 0.193 H 280.6°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5145C6
RGBrgb(81, 69, 198)
HSLhsl(246, 53%, 52%)
HSVhsv(246, 65%, 78%)
CMYKcmyk(59.1%, 65.2%, 0%, 22.4%)
CIE-LABlab(37.99, 41.70, -65.75)
CIE-LCHlch(37.99, 77.85, 302.38°)
OKLaboklab(48.3% 0.0353 -0.1892)
OKLCHoklch(48.3% 0.193 280.6)
XYZxyz(15.7113, 10.0817, 54.5332)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C6 #BAC645
analogous
#457AC6 #5145C6 #9145C6
triadic
#5145C6 #C65145 #45C651
tetradic
#5145C6 #C6457A #BAC645 #45C691
square
#5145C6 #C6457A #BAC645 #45C691
split-complementary
#5145C6 #C69145 #7AC645
monochromatic
#29226F #3A309E #5145C6 #7D74D4 #A9A3E3

Accessibility & contrast

On white

6.96
#5145C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5145C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145C6
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C6#FFFFFF#000000##FFFFFF
##5145C61.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0055C3
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5145c6;
/* rgb */ color: rgb(81, 69, 198);
/* oklch */ color: oklch(48.3% 0.193 280.6);
Tailwind
colors: {
  custom: {
    50: '#8e7ad8',
    500: '#5145c6',
    950: '#000000',
  },
}
SCSS
$custom: #5145c6;
$custom-light: #8e7ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c6",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 198
  },
  "hsl": {
    "h": 245.581,
    "s": 53.086,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48295,
    "c": 0.1925,
    "h": 280.6
  },
  "luminance": 0.10083
}

Semantic roles & 50–950 ramp

primary
#5145C6
secondary
#CACF97
accent
#DC4BCF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5145C6

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

Preview Lab → · Contrast checker → · Palette generator →

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