#5145D5#5145D5

#5145D5 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.6% C 0.211 H 279.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5145D5
RGBrgb(81, 69, 213)
HSLhsl(245, 63%, 55%)
HSVhsv(245, 68%, 84%)
CMYKcmyk(62%, 67.6%, 0%, 16.5%)
CIE-LABlab(39.26, 46.43, -72.35)
CIE-LCHlch(39.26, 85.97, 302.69°)
OKLaboklab(49.6% 0.0335 -0.2086)
OKLCHoklch(49.6% 0.211 279.1)
XYZxyz(17.5279, 10.8083, 64.1004)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D5 #C9D545
analogous
#4581D5 #5145D5 #9945D5
triadic
#5145D5 #D55145 #45D551
tetradic
#5145D5 #D54581 #C9D545 #45D599
square
#5145D5 #D54581 #C9D545 #45D599
split-complementary
#5145D5 #D59945 #81D545
monochromatic
#261D82 #3429B4 #5145D5 #8077E0 #AEA9EC

Accessibility & contrast

On white

6.64
#5145D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5145D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D5
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D5#FFFFFF#000000##FFFFFF
##5145D51.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5145d5;
/* rgb */ color: rgb(81, 69, 213);
/* oklch */ color: oklch(49.6% 0.211 279.1);
Tailwind
colors: {
  custom: {
    50: '#907ae3',
    500: '#5145d5',
    950: '#000000',
  },
}
SCSS
$custom: #5145d5;
$custom-light: #907ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d5",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 213
  },
  "hsl": {
    "h": 245,
    "s": 63.158,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49602,
    "c": 0.21128,
    "h": 279.1
  },
  "luminance": 0.1081
}

Semantic roles & 50–950 ramp

primary
#5145D5
secondary
#D4D99D
accent
#E642D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145D5

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

Preview Lab → · Contrast checker → · Palette generator →

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