#5138BC#5138BC

#5138BC is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.195 H 284.2°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#5138BC
RGBrgb(81, 56, 188)
HSLhsl(251, 54%, 48%)
HSVhsv(251, 70%, 74%)
CMYKcmyk(56.9%, 70.2%, 0%, 26.3%)
CIE-LABlab(34.41, 46.02, -65.74)
CIE-LCHlch(34.41, 80.25, 304.99°)
OKLaboklab(45.46% 0.0478 -0.1892)
OKLCHoklch(45.46% 0.195 284.2)
XYZxyz(13.8818, 8.2077, 48.4200)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5138BC #A3BC38
analogous
#3861BC #5138BC #9338BC
triadic
#5138BC #BC5138 #38BC51
tetradic
#5138BC #BC3861 #A3BC38 #38BC93
square
#5138BC #BC3861 #A3BC38 #38BC93
split-complementary
#5138BC #BC9338 #61BC38
monochromatic
#281C5E #3D2A8D #5138BC #7661D0 #9F90DE

Accessibility & contrast

On white

7.95
#5138BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5138BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5138BC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5138BC#FFFFFF#000000##FFFFFF
##5138BC1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004DB9
Tritanopia (blue-blind)
#1A5B76
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5138bc;
/* rgb */ color: rgb(81, 56, 188);
/* oklch */ color: oklch(45.5% 0.195 284.2);
Tailwind
colors: {
  custom: {
    50: '#8d71d1',
    500: '#5138bc',
    950: '#000000',
  },
}
SCSS
$custom: #5138bc;
$custom-light: #8d71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5138bc",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 251.364,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45457,
    "c": 0.19515,
    "h": 284.2
  },
  "luminance": 0.08209
}

Semantic roles & 50–950 ramp

primary
#5138BC
secondary
#BCC987
accent
#DD4AC2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5138BC

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

Preview Lab → · Contrast checker → · Palette generator →

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