#5155E7#5155E7

#5155E7 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.7% C 0.216 H 275.2°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5155E7
RGBrgb(81, 85, 231)
HSLhsl(238, 76%, 61%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(64.9%, 63.2%, 0%, 9.4%)
CIE-LABlab(44.25, 42.85, -74.44)
CIE-LCHlch(44.25, 85.89, 299.93°)
OKLaboklab(53.69% 0.0195 -0.2147)
OKLCHoklch(53.69% 0.216 275.2)
XYZxyz(21.0609, 14.0140, 77.1809)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E7 #E7E351
analogous
#51A0E7 #5155E7 #9851E7
triadic
#5155E7 #E75155 #55E751
tetradic
#5155E7 #E751A0 #E7E351 #51E798
square
#5155E7 #E751A0 #E7E351 #51E798
split-complementary
#5155E7 #E79851 #A0E751
monochromatic
#171BA7 #1E23DC #5155E7 #878AEE #BDBEF6

Accessibility & contrast

On white

5.52
#5155E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5155E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E7#FFFFFF#000000##FFFFFF
##5155E71.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5155e7;
/* rgb */ color: rgb(81, 85, 231);
/* oklch */ color: oklch(53.7% 0.216 275.2);
Tailwind
colors: {
  custom: {
    50: '#9285f0',
    500: '#5155e7',
    950: '#000000',
  },
}
SCSS
$custom: #5155e7;
$custom-light: #9285f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e7",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 231
  },
  "hsl": {
    "h": 238.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53693,
    "c": 0.21556,
    "h": 275.2
  },
  "luminance": 0.14016
}

Semantic roles & 50–950 ramp

primary
#5155E7
secondary
#E6E5AE
accent
#D30ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5155E7

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

Preview Lab → · Contrast checker → · Palette generator →

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