#5136AC#5136AC

#5136AC is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.8% C 0.178 H 287.1°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5136AC
RGBrgb(81, 54, 172)
HSLhsl(254, 52%, 44%)
HSVhsv(254, 69%, 67%)
CMYKcmyk(52.9%, 68.6%, 0%, 32.5%)
CIE-LABlab(32.63, 42.33, -59.17)
CIE-LCHlch(32.63, 72.75, 305.58°)
OKLaboklab(43.75% 0.0523 -0.1699)
OKLCHoklch(43.75% 0.178 287.1)
XYZxyz(12.1567, 7.3656, 39.8029)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136AC #91AC36
analogous
#3656AC #5136AC #8C36AC
triadic
#5136AC #AC5136 #36AC51
tetradic
#5136AC #AC3656 #91AC36 #36AC8C
square
#5136AC #AC3656 #91AC36 #36AC8C
split-complementary
#5136AC #AC8C36 #56AC36
monochromatic
#25194F #3B277D #5136AC #7055CA #9784D8

Accessibility & contrast

On white

8.49
#5136AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5136AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136AC
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136AC#FFFFFF#000000##FFFFFF
##5136AC1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#2D546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5136ac;
/* rgb */ color: rgb(81, 54, 172);
/* oklch */ color: oklch(43.8% 0.178 287.1);
Tailwind
colors: {
  custom: {
    50: '#8b6fc6',
    500: '#5136ac',
    950: '#000000',
  },
}
SCSS
$custom: #5136ac;
$custom-light: #8b6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5136ac",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 172
  },
  "hsl": {
    "h": 253.729,
    "s": 52.212,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43752,
    "c": 0.1778,
    "h": 287.1
  },
  "luminance": 0.07366
}

Semantic roles & 50–950 ramp

primary
#5136AC
secondary
#B2C27C
accent
#DC4CBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5136AC

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

Preview Lab → · Contrast checker → · Palette generator →

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