#5165E7#5165E7

#5165E7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 56.5% C 0.197 H 271.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5165E7
RGBrgb(81, 101, 231)
HSLhsl(232, 76%, 61%)
HSVhsv(232, 65%, 91%)
CMYKcmyk(64.9%, 56.3%, 0%, 9.4%)
CIE-LABlab(48.04, 33.12, -68.28)
CIE-LCHlch(48.04, 75.89, 295.88°)
OKLaboklab(56.49% 0.0067 -0.1964)
OKLCHoklch(56.49% 0.197 271.9)
XYZxyz(22.4660, 16.8242, 77.6493)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165E7 #E7D351
analogous
#51B0E7 #5165E7 #8851E7
triadic
#5165E7 #E75165 #65E751
tetradic
#5165E7 #E751B0 #E7D351 #51E788
square
#5165E7 #E751B0 #E7D351 #51E788
split-complementary
#5165E7 #E78851 #B0E751
monochromatic
#172AA7 #1E38DC #5165E7 #8795EE #BDC4F6

Accessibility & contrast

On white

4.81
#5165E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5165E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165E7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165E7#FFFFFF#000000##FFFFFF
##5165E71.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079EB
Deuteranopia (green-blind)
#006BE4
Tritanopia (blue-blind)
#00849C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5165e7;
/* rgb */ color: rgb(81, 101, 231);
/* oklch */ color: oklch(56.5% 0.197 271.9);
Tailwind
colors: {
  custom: {
    50: '#9190ef',
    500: '#5165e7',
    950: '#000000',
  },
}
SCSS
$custom: #5165e7;
$custom-light: #9190ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5165e7",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 231
  },
  "hsl": {
    "h": 232,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5649,
    "c": 0.19655,
    "h": 271.9
  },
  "luminance": 0.16826
}

Semantic roles & 50–950 ramp

primary
#5165E7
secondary
#E6DFAE
accent
#BD0ED8
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5165E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5165E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva