#5139AE#5139AE

#5139AE is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.4% C 0.177 H 286.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5139AE
RGBrgb(81, 57, 174)
HSLhsl(252, 51%, 45%)
HSVhsv(252, 67%, 68%)
CMYKcmyk(53.4%, 67.2%, 0%, 31.8%)
CIE-LABlab(33.42, 41.23, -59.07)
CIE-LCHlch(33.42, 72.04, 304.91°)
OKLaboklab(44.37% 0.0492 -0.1696)
OKLCHoklch(44.37% 0.177 286.2)
XYZxyz(12.4942, 7.7309, 40.8701)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139AE #96AE39
analogous
#395BAE #5139AE #8C39AE
triadic
#5139AE #AE5139 #39AE51
tetradic
#5139AE #AE395B #96AE39 #39AE8C
square
#5139AE #AE395B #96AE39 #39AE8C
split-complementary
#5139AE #AE8C39 #5BAE39
monochromatic
#261B52 #3C2A80 #5139AE #725BC9 #9989D8

Accessibility & contrast

On white

8.25
#5139AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5139AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139AE
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139AE#FFFFFF#000000##FFFFFF
##5139AE1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#2B566E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5139ae;
/* rgb */ color: rgb(81, 57, 174);
/* oklch */ color: oklch(44.4% 0.177 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b71c7',
    500: '#5139ae',
    950: '#000000',
  },
}
SCSS
$custom: #5139ae;
$custom-light: #8b71c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5139ae",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 174
  },
  "hsl": {
    "h": 252.308,
    "s": 50.649,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44373,
    "c": 0.17662,
    "h": 286.2
  },
  "luminance": 0.07732
}

Semantic roles & 50–950 ramp

primary
#5139AE
secondary
#B5C380
accent
#DA4EBD
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5139AE

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

Preview Lab → · Contrast checker → · Palette generator →

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