#5155E6#5155E6

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

Color values

HEX#5155E6
RGBrgb(81, 85, 230)
HSLhsl(238, 75%, 61%)
HSVhsv(238, 65%, 90%)
CMYKcmyk(64.8%, 63%, 0%, 9.8%)
CIE-LABlab(44.17, 42.52, -74.01)
CIE-LCHlch(44.17, 85.35, 299.88°)
OKLaboklab(53.61% 0.0196 -0.2134)
OKLCHoklch(53.61% 0.214 275.2)
XYZxyz(20.9201, 13.9577, 76.4392)
Luminance0.1396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155E6 #E6E251
analogous
#519FE6 #5155E6 #9751E6
triadic
#5155E6 #E65155 #55E651
tetradic
#5155E6 #E6519F #E6E251 #51E697
square
#5155E6 #E6519F #E6E251 #51E697
split-complementary
#5155E6 #E69751 #9FE651
monochromatic
#181BA5 #1F24DA #5155E6 #8789EE #BCBEF5

Accessibility & contrast

On white

5.54
#5155E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5155E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155E6
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155E6#FFFFFF#000000##FFFFFF
##5155E61.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEB
Deuteranopia (green-blind)
#0062E3
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5155e6;
/* rgb */ color: rgb(81, 85, 230);
/* oklch */ color: oklch(53.6% 0.214 275.2);
Tailwind
colors: {
  custom: {
    50: '#9285ef',
    500: '#5155e6',
    950: '#000000',
  },
}
SCSS
$custom: #5155e6;
$custom-light: #9285ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5155e6",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 230
  },
  "hsl": {
    "h": 238.389,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53609,
    "c": 0.2143,
    "h": 275.2
  },
  "luminance": 0.1396
}

Semantic roles & 50–950 ramp

primary
#5155E6
secondary
#E5E4AD
accent
#D20ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5155E6

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

Preview Lab → · Contrast checker → · Palette generator →

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