#5136AA#5136AA

#5136AA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.175 H 287.5°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5136AA
RGBrgb(81, 54, 170)
HSLhsl(254, 52%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(52.4%, 68.2%, 0%, 33.3%)
CIE-LABlab(32.46, 41.73, -58.25)
CIE-LCHlch(32.46, 71.65, 305.62°)
OKLaboklab(43.58% 0.0526 -0.1672)
OKLCHoklch(43.58% 0.175 287.5)
XYZxyz(11.9661, 7.2894, 38.7989)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136AA #8FAA36
analogous
#3655AA #5136AA #8B36AA
triadic
#5136AA #AA5136 #36AA51
tetradic
#5136AA #AA3655 #8FAA36 #36AA8B
square
#5136AA #AA3655 #8FAA36 #36AA8B
split-complementary
#5136AA #AA8B36 #55AA36
monochromatic
#25184D #3B277C #5136AA #6F54C9 #9783D8

Accessibility & contrast

On white

8.54
#5136AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5136AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5136AA#FFFFFF#000000##FFFFFF
##5136AA1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0049A8
Tritanopia (blue-blind)
#2F536B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5136aa;
/* rgb */ color: rgb(81, 54, 170);
/* oklch */ color: oklch(43.6% 0.175 287.5);
Tailwind
colors: {
  custom: {
    50: '#8a6fc4',
    500: '#5136aa',
    950: '#000000',
  },
}
SCSS
$custom: #5136aa;
$custom-light: #8a6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5136aa",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 253.966,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43579,
    "c": 0.1753,
    "h": 287.5
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#5136AA
secondary
#B1C17B
accent
#DB4DBA
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #5136AA

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

Preview Lab → · Contrast checker → · Palette generator →

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