#5138BD#5138BD

#5138BD is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.5% C 0.196 H 284.0°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5138BD
RGBrgb(81, 56, 189)
HSLhsl(251, 54%, 48%)
HSVhsv(251, 70%, 74%)
CMYKcmyk(57.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.50, 46.32, -66.18)
CIE-LCHlch(34.50, 80.79, 304.99°)
OKLaboklab(45.55% 0.0476 -0.1905)
OKLCHoklch(45.55% 0.196 284)
XYZxyz(13.9900, 8.2509, 48.9896)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138BD #A4BD38
analogous
#3861BD #5138BD #9338BD
triadic
#5138BD #BD5138 #38BD51
tetradic
#5138BD #BD3861 #A4BD38 #38BD93
square
#5138BD #BD3861 #A4BD38 #38BD93
split-complementary
#5138BD #BD9338 #61BD38
monochromatic
#291C5F #3D2A8E #5138BD #7762D0 #A091DE

Accessibility & contrast

On white

7.92
#5138BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5138BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138BD
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138BD#FFFFFF#000000##FFFFFF
##5138BD1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004DBA
Tritanopia (blue-blind)
#185B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5138bd;
/* rgb */ color: rgb(81, 56, 189);
/* oklch */ color: oklch(45.5% 0.196 284.0);
Tailwind
colors: {
  custom: {
    50: '#8d71d2',
    500: '#5138bd',
    950: '#000000',
  },
}
SCSS
$custom: #5138bd;
$custom-light: #8d71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5138bd",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 251.278,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45548,
    "c": 0.19636,
    "h": 284
  },
  "luminance": 0.08252
}

Semantic roles & 50–950 ramp

primary
#5138BD
secondary
#BDC987
accent
#DE4AC2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5138BD

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

Preview Lab → · Contrast checker → · Palette generator →

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