#5136AF#5136AF

#5136AF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.182 H 286.6°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5136AF
RGBrgb(81, 54, 175)
HSLhsl(253, 53%, 45%)
HSVhsv(253, 69%, 69%)
CMYKcmyk(53.7%, 69.1%, 0%, 31.4%)
CIE-LABlab(32.88, 43.23, -60.54)
CIE-LCHlch(32.88, 74.39, 305.53°)
OKLaboklab(44.01% 0.0518 -0.174)
OKLCHoklch(44.01% 0.182 286.6)
XYZxyz(12.4481, 7.4822, 41.3374)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136AF #94AF36
analogous
#3658AF #5136AF #8D36AF
triadic
#5136AF #AF5136 #36AF51
tetradic
#5136AF #AF3658 #94AF36 #36AF8D
square
#5136AF #AF3658 #94AF36 #36AF8D
split-complementary
#5136AF #AF8D36 #58AF36
monochromatic
#261951 #3B2880 #5136AF #7157CB #9886DA

Accessibility & contrast

On white

8.41
#5136AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5136AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5136AF#FFFFFF#000000##FFFFFF
##5136AF1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#004AAD
Tritanopia (blue-blind)
#2B556E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5136af;
/* rgb */ color: rgb(81, 54, 175);
/* oklch */ color: oklch(44.0% 0.182 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b6fc8',
    500: '#5136af',
    950: '#000000',
  },
}
SCSS
$custom: #5136af;
$custom-light: #8b6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5136af",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 253.388,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44014,
    "c": 0.18151,
    "h": 286.6
  },
  "luminance": 0.07483
}

Semantic roles & 50–950 ramp

primary
#5136AF
secondary
#B4C37D
accent
#DC4CBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5136AF

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

Preview Lab → · Contrast checker → · Palette generator →

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