#5139BF#5139BF

#5139BF is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.198 H 283.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5139BF
RGBrgb(81, 57, 191)
HSLhsl(251, 54%, 49%)
HSVhsv(251, 70%, 75%)
CMYKcmyk(57.6%, 70.2%, 0%, 25.1%)
CIE-LABlab(34.88, 46.38, -66.75)
CIE-LCHlch(34.88, 81.28, 304.79°)
OKLaboklab(45.87% 0.0464 -0.1922)
OKLCHoklch(45.87% 0.198 283.6)
XYZxyz(14.2575, 8.4363, 50.1572)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139BF #A7BF39
analogous
#3964BF #5139BF #9439BF
triadic
#5139BF #BF5139 #39BF51
tetradic
#5139BF #BF3964 #A7BF39 #39BF94
square
#5139BF #BF3964 #A7BF39 #39BF94
split-complementary
#5139BF #BF9439 #64BF39
monochromatic
#291D61 #3D2B90 #5139BF #7864D1 #A193DF

Accessibility & contrast

On white

7.81
#5139BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5139BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139BF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139BF#FFFFFF#000000##FFFFFF
##5139BF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#145D78
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5139bf;
/* rgb */ color: rgb(81, 57, 191);
/* oklch */ color: oklch(45.9% 0.198 283.6);
Tailwind
colors: {
  custom: {
    50: '#8d72d3',
    500: '#5139bf',
    950: '#000000',
  },
}
SCSS
$custom: #5139bf;
$custom-light: #8d72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5139bf",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 191
  },
  "hsl": {
    "h": 250.746,
    "s": 54.032,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4587,
    "c": 0.19768,
    "h": 283.6
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#5139BF
secondary
#BFCA8A
accent
#DD4AC3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5139BF

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

Preview Lab → · Contrast checker → · Palette generator →

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