#5148E7#5148E7

#5148E7 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.7% C 0.230 H 277.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5148E7
RGBrgb(81, 72, 231)
HSLhsl(243, 77%, 59%)
HSVhsv(243, 69%, 91%)
CMYKcmyk(64.9%, 68.8%, 0%, 9.4%)
CIE-LABlab(41.46, 50.38, -79.02)
CIE-LCHlch(41.46, 93.72, 302.52°)
OKLaboklab(51.67% 0.0287 -0.2281)
OKLCHoklch(51.67% 0.23 277.2)
XYZxyz(20.1298, 12.1519, 76.8705)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148E7 #DEE748
analogous
#488FE7 #5148E7 #A048E7
triadic
#5148E7 #E75148 #48E751
tetradic
#5148E7 #E7488F #DEE748 #48E7A0
square
#5148E7 #E7488F #DEE748 #48E7A0
split-complementary
#5148E7 #E7A048 #8FE748
monochromatic
#1D15A0 #271CD6 #5148E7 #847EEE #B8B4F5

Accessibility & contrast

On white

6.12
#5148E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5148E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5148E7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148E7#FFFFFF#000000##FFFFFF
##5148E71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EC
Deuteranopia (green-blind)
#005BE4
Tritanopia (blue-blind)
#007392
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5148e7;
/* rgb */ color: rgb(81, 72, 231);
/* oklch */ color: oklch(51.7% 0.230 277.2);
Tailwind
colors: {
  custom: {
    50: '#937cf0',
    500: '#5148e7',
    950: '#000000',
  },
}
SCSS
$custom: #5148e7;
$custom-light: #937cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5148e7",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 231
  },
  "hsl": {
    "h": 243.396,
    "s": 76.812,
    "l": 59.412
  },
  "oklch": {
    "l": 0.51667,
    "c": 0.22993,
    "h": 277.2
  },
  "luminance": 0.12154
}

Semantic roles & 50–950 ramp

primary
#5148E7
secondary
#E1E4A6
accent
#F334E9
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5148E7

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

Preview Lab → · Contrast checker → · Palette generator →

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