#5136A4#5136A4

#5136A4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.1% C 0.168 H 288.6°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5136A4
RGBrgb(81, 54, 164)
HSLhsl(255, 50%, 43%)
HSVhsv(255, 67%, 64%)
CMYKcmyk(50.6%, 67.1%, 0%, 35.7%)
CIE-LABlab(31.96, 39.94, -55.45)
CIE-LCHlch(31.96, 68.34, 305.76°)
OKLaboklab(43.07% 0.0535 -0.159)
OKLCHoklch(43.07% 0.168 288.6)
XYZxyz(11.4114, 7.0675, 35.8776)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136A4 #89A436
analogous
#3652A4 #5136A4 #8836A4
triadic
#5136A4 #A45136 #36A451
tetradic
#5136A4 #A43652 #89A436 #36A488
square
#5136A4 #A43652 #89A436 #36A488
split-complementary
#5136A4 #A48836 #52A436
monochromatic
#241848 #3A2776 #5136A4 #6E51C6 #947FD5

Accessibility & contrast

On white

8.70
#5136A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5136A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136A4
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136A4#FFFFFF#000000##FFFFFF
##5136A41.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#345168
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5136a4;
/* rgb */ color: rgb(81, 54, 164);
/* oklch */ color: oklch(43.1% 0.168 288.6);
Tailwind
colors: {
  custom: {
    50: '#896fc0',
    500: '#5136a4',
    950: '#000000',
  },
}
SCSS
$custom: #5136a4;
$custom-light: #896fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5136a4",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 164
  },
  "hsl": {
    "h": 254.727,
    "s": 50.459,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43067,
    "c": 0.16776,
    "h": 288.6
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#5136A4
secondary
#ADBE78
accent
#DA4EB8
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5136A4

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

Preview Lab → · Contrast checker → · Palette generator →

#5136A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva