#5139BC#5139BC

#5139BC is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.194 H 284.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5139BC
RGBrgb(81, 57, 188)
HSLhsl(251, 53%, 48%)
HSVhsv(251, 70%, 74%)
CMYKcmyk(56.9%, 69.7%, 0%, 26.3%)
CIE-LABlab(34.61, 45.47, -65.41)
CIE-LCHlch(34.61, 79.66, 304.80°)
OKLaboklab(45.6% 0.0469 -0.1883)
OKLCHoklch(45.6% 0.194 284)
XYZxyz(13.9308, 8.3056, 48.4363)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139BC #A4BC39
analogous
#3963BC #5139BC #9239BC
triadic
#5139BC #BC5139 #39BC51
tetradic
#5139BC #BC3963 #A4BC39 #39BC92
square
#5139BC #BC3963 #A4BC39 #39BC92
split-complementary
#5139BC #BC9239 #63BC39
monochromatic
#291D5E #3D2B8D #5139BC #7763D0 #A092DE

Accessibility & contrast

On white

7.89
#5139BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5139BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139BC
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139BC#FFFFFF#000000##FFFFFF
##5139BC1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5139bc;
/* rgb */ color: rgb(81, 57, 188);
/* oklch */ color: oklch(45.6% 0.194 284.0);
Tailwind
colors: {
  custom: {
    50: '#8d71d1',
    500: '#5139bc',
    950: '#000000',
  },
}
SCSS
$custom: #5139bc;
$custom-light: #8d71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5139bc",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 188
  },
  "hsl": {
    "h": 250.992,
    "s": 53.469,
    "l": 48.039
  },
  "oklch": {
    "l": 0.456,
    "c": 0.19402,
    "h": 284
  },
  "luminance": 0.08306
}

Semantic roles & 50–950 ramp

primary
#5139BC
secondary
#BDC988
accent
#DD4BC2
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5139BC

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

Preview Lab → · Contrast checker → · Palette generator →

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