#5160F5#5160F5

#5160F5 is a mid, highly saturated blue. Relative luminance 0.167; OKLCH L 56.7% C 0.221 H 272.7°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5160F5
RGBrgb(81, 96, 245)
HSLhsl(235, 89%, 64%)
HSVhsv(235, 67%, 96%)
CMYKcmyk(66.9%, 60.8%, 0%, 3.9%)
CIE-LABlab(47.89, 40.88, -76.38)
CIE-LCHlch(47.89, 86.63, 298.16°)
OKLaboklab(56.71% 0.0106 -0.2203)
OKLCHoklch(56.71% 0.221 272.7)
XYZxyz(24.0521, 16.7054, 88.3254)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5160F5 #F5E651
analogous
#51B2F5 #5160F5 #9451F5
triadic
#5160F5 #F55160 #60F551
tetradic
#5160F5 #F551B2 #F5E651 #51F594
square
#5160F5 #F551B2 #F5E651 #51F594
split-complementary
#5160F5 #F59451 #B2F551
monochromatic
#0B1CC1 #172BF2 #5160F5 #8B95F8 #C5CAFC

Accessibility & contrast

On white

4.84
#5160F5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#5160F5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5160F5
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5160F5#FFFFFF#000000##FFFFFF
##5160F51.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FA
Deuteranopia (green-blind)
#006AF2
Tritanopia (blue-blind)
#0086A1
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5160f5;
/* rgb */ color: rgb(81, 96, 245);
/* oklch */ color: oklch(56.7% 0.221 272.7);
Tailwind
colors: {
  custom: {
    50: '#948dfa',
    500: '#5160f5',
    950: '#000000',
  },
}
SCSS
$custom: #5160f5;
$custom-light: #948dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#5160f5",
  "rgb": {
    "r": 81,
    "g": 96,
    "b": 245
  },
  "hsl": {
    "h": 234.512,
    "s": 89.13,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56706,
    "c": 0.22054,
    "h": 272.7
  },
  "luminance": 0.16708
}

Semantic roles & 50–950 ramp

primary
#5160F5
secondary
#EEE8B4
accent
#D100E6
background
#FAF8FF
surface
#F3F0FF
border
#CDCBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5160F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5160F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva