#5138D0#5138D0

#5138D0 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 47.3% C 0.219 H 281.5°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5138D0
RGBrgb(81, 56, 208)
HSLhsl(250, 62%, 52%)
HSVhsv(250, 73%, 82%)
CMYKcmyk(61.1%, 73.1%, 0%, 18.4%)
CIE-LABlab(36.23, 52.01, -74.43)
CIE-LCHlch(36.23, 90.80, 304.95°)
OKLaboklab(47.31% 0.0437 -0.2146)
OKLCHoklch(47.31% 0.219 281.5)
XYZxyz(16.1891, 9.1306, 60.5716)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138D0 #B7D038
analogous
#386BD0 #5138D0 #9D38D0
triadic
#5138D0 #D05138 #38D051
tetradic
#5138D0 #D0386B #B7D038 #38D09D
square
#5138D0 #D0386B #B7D038 #38D09D
split-complementary
#5138D0 #D09D38 #6BD038
monochromatic
#291B73 #3B27A4 #5138D0 #7C6ADC #A89BE7

Accessibility & contrast

On white

7.43
#5138D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5138D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138D0
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138D0#FFFFFF#000000##FFFFFF
##5138D01.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD4
Deuteranopia (green-blind)
#0050CD
Tritanopia (blue-blind)
#006381
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5138d0;
/* rgb */ color: rgb(81, 56, 208);
/* oklch */ color: oklch(47.3% 0.219 281.5);
Tailwind
colors: {
  custom: {
    50: '#9072e0',
    500: '#5138d0',
    950: '#000000',
  },
}
SCSS
$custom: #5138d0;
$custom-light: #9072e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5138d0",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 249.868,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47308,
    "c": 0.21905,
    "h": 281.5
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#5138D0
secondary
#C8D391
accent
#E543CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5138D0

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

Preview Lab → · Contrast checker → · Palette generator →

#5138D0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva