#5153D6#5153D6

#5153D6 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.9% C 0.196 H 276.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5153D6
RGBrgb(81, 83, 214)
HSLhsl(239, 62%, 58%)
HSVhsv(239, 62%, 84%)
CMYKcmyk(62.1%, 61.2%, 0%, 16.1%)
CIE-LABlab(42.44, 38.48, -67.72)
CIE-LCHlch(42.44, 77.88, 299.61°)
OKLaboklab(51.95% 0.0221 -0.195)
OKLCHoklch(51.95% 0.196 276.5)
XYZxyz(18.6202, 12.7894, 65.0926)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5153D6 #D6D451
analogous
#5195D6 #5153D6 #9251D6
triadic
#5153D6 #D65153 #53D651
tetradic
#5153D6 #D65195 #D6D451 #51D692
square
#5153D6 #D65195 #D6D451 #51D692
split-complementary
#5153D6 #D69251 #95D651
monochromatic
#21238C #2D2FBD #5153D6 #8384E2 #B4B5ED

Accessibility & contrast

On white

5.90
#5153D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5153D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5153D6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5153D6#FFFFFF#000000##FFFFFF
##5153D61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADA
Deuteranopia (green-blind)
#005ED3
Tritanopia (blue-blind)
#00748D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5153d6;
/* rgb */ color: rgb(81, 83, 214);
/* oklch */ color: oklch(51.9% 0.196 276.5);
Tailwind
colors: {
  custom: {
    50: '#8f83e4',
    500: '#5153d6',
    950: '#000000',
  },
}
SCSS
$custom: #5153d6;
$custom-light: #8f83e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5153d6",
  "rgb": {
    "r": 81,
    "g": 83,
    "b": 214
  },
  "hsl": {
    "h": 239.098,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51948,
    "c": 0.19621,
    "h": 276.5
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#5153D6
secondary
#DCDBA7
accent
#E343E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5153D6

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

Preview Lab → · Contrast checker → · Palette generator →

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