#5162C7#5162C7

#5162C7 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.6% C 0.157 H 272.8°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5162C7
RGBrgb(81, 98, 199)
HSLhsl(231, 51%, 55%)
HSVhsv(231, 59%, 78%)
CMYKcmyk(59.3%, 50.8%, 0%, 22%)
CIE-LABlab(45.09, 24.16, -54.81)
CIE-LCHlch(45.09, 59.90, 293.79°)
OKLaboklab(53.58% 0.0077 -0.1568)
OKLCHoklch(53.58% 0.157 272.8)
XYZxyz(18.0664, 14.6068, 55.8891)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5162C7 #C7B651
analogous
#519DC7 #5162C7 #7B51C7
triadic
#5162C7 #C75162 #62C751
tetradic
#5162C7 #C7519D #C7B651 #51C77B
square
#5162C7 #C7519D #C7B651 #51C77B
split-complementary
#5162C7 #C77B51 #9DC751
monochromatic
#263277 #3545A6 #5162C7 #7F8CD6 #AEB6E5

Accessibility & contrast

On white

5.35
#5162C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5162C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5162C7
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5162C7#FFFFFF#000000##FFFFFF
##5162C71.005.353.925.35
#FFFFFF5.351.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B70CB
Deuteranopia (green-blind)
#1066C5
Tritanopia (blue-blind)
#00798B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5162c7;
/* rgb */ color: rgb(81, 98, 199);
/* oklch */ color: oklch(53.6% 0.157 272.8);
Tailwind
colors: {
  custom: {
    50: '#8c8ed9',
    500: '#5162c7',
    950: '#000000',
  },
}
SCSS
$custom: #5162c7;
$custom-light: #8c8ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5162c7",
  "rgb": {
    "r": 81,
    "g": 98,
    "b": 199
  },
  "hsl": {
    "h": 231.356,
    "s": 51.304,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53583,
    "c": 0.15703,
    "h": 272.8
  },
  "luminance": 0.14608
}

Semantic roles & 50–950 ramp

primary
#5162C7
secondary
#D3CCA1
accent
#C64DDB
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5162C7

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

Preview Lab → · Contrast checker → · Palette generator →

#5162C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva