#5145C1#5145C1

#5145C1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.9% C 0.186 H 281.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#5145C1
RGBrgb(81, 69, 193)
HSLhsl(246, 50%, 51%)
HSVhsv(246, 64%, 76%)
CMYKcmyk(58%, 64.2%, 0%, 24.3%)
CIE-LABlab(37.58, 40.11, -63.49)
CIE-LCHlch(37.58, 75.10, 302.28°)
OKLaboklab(47.87% 0.0358 -0.1826)
OKLCHoklch(47.87% 0.186 281.1)
XYZxyz(15.1441, 9.8548, 51.5459)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145C1 #B5C145
analogous
#4577C1 #5145C1 #8F45C1
triadic
#5145C1 #C15145 #45C151
tetradic
#5145C1 #C14577 #B5C145 #45C18F
square
#5145C1 #C14577 #B5C145 #45C18F
split-complementary
#5145C1 #C18F45 #77C145
monochromatic
#2A2369 #3C3297 #5145C1 #7C73D0 #A7A1E0

Accessibility & contrast

On white

7.07
#5145C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5145C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145C1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145C1#FFFFFF#000000##FFFFFF
##5145C11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#0B647D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5145c1;
/* rgb */ color: rgb(81, 69, 193);
/* oklch */ color: oklch(47.9% 0.186 281.1);
Tailwind
colors: {
  custom: {
    50: '#8d79d5',
    500: '#5145c1',
    950: '#000000',
  },
}
SCSS
$custom: #5145c1;
$custom-light: #8d79d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5145c1",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 193
  },
  "hsl": {
    "h": 245.806,
    "s": 50,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47872,
    "c": 0.1861,
    "h": 281.1
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#5145C1
secondary
#C7CC96
accent
#DA4ECC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5145C1

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

Preview Lab → · Contrast checker → · Palette generator →

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