#5155D6#5155D6

#5155D6 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 52.3% C 0.194 H 276.0°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5155D6
RGBrgb(81, 85, 214)
HSLhsl(238, 62%, 58%)
HSVhsv(238, 62%, 84%)
CMYKcmyk(62.1%, 60.3%, 0%, 16.1%)
CIE-LABlab(42.91, 37.26, -66.95)
CIE-LCHlch(42.91, 76.62, 299.10°)
OKLaboklab(52.29% 0.0204 -0.1927)
OKLCHoklch(52.29% 0.194 276)
XYZxyz(18.7755, 13.0999, 65.1444)
Luminance0.1310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155D6 #D6D251
analogous
#5198D6 #5155D6 #8F51D6
triadic
#5155D6 #D65155 #55D651
tetradic
#5155D6 #D65198 #D6D251 #51D68F
square
#5155D6 #D65198 #D6D251 #51D68F
split-complementary
#5155D6 #D68F51 #98D651
monochromatic
#21248C #2D31BD #5155D6 #8385E2 #B4B6ED

Accessibility & contrast

On white

5.80
#5155D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5155D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155D6
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155D6#FFFFFF#000000##FFFFFF
##5155D61.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDA
Deuteranopia (green-blind)
#0060D3
Tritanopia (blue-blind)
#00758D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5155d6;
/* rgb */ color: rgb(81, 85, 214);
/* oklch */ color: oklch(52.3% 0.194 276.0);
Tailwind
colors: {
  custom: {
    50: '#8f85e4',
    500: '#5155d6',
    950: '#000000',
  },
}
SCSS
$custom: #5155d6;
$custom-light: #8f85e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5155d6",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 214
  },
  "hsl": {
    "h": 238.195,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52293,
    "c": 0.19377,
    "h": 276
  },
  "luminance": 0.13101
}

Semantic roles & 50–950 ramp

primary
#5155D6
secondary
#DCDAA7
accent
#E043E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5155D6

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

Preview Lab → · Contrast checker → · Palette generator →

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