#5134A2#5134A2

#5134A2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.168 H 289.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#5134A2
RGBrgb(81, 52, 162)
HSLhsl(256, 51%, 42%)
HSVhsv(256, 68%, 64%)
CMYKcmyk(50%, 67.9%, 0%, 36.5%)
CIE-LABlab(31.38, 40.48, -55.19)
CIE-LCHlch(31.38, 68.45, 306.26°)
OKLaboklab(42.6% 0.0558 -0.1582)
OKLCHoklch(42.6% 0.168 289.4)
XYZxyz(11.1410, 6.8135, 34.9035)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134A2 #85A234
analogous
#344EA2 #5134A2 #8834A2
triadic
#5134A2 #A25134 #34A251
tetradic
#5134A2 #A2344E #85A234 #34A288
square
#5134A2 #A2344E #85A234 #34A288
split-complementary
#5134A2 #A28834 #4EA234
monochromatic
#231645 #3A2574 #5134A2 #6D4DC6 #937CD5

Accessibility & contrast

On white

8.89
#5134A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5134A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134A2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134A2#FFFFFF#000000##FFFFFF
##5134A21.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#354F66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5134a2;
/* rgb */ color: rgb(81, 52, 162);
/* oklch */ color: oklch(42.6% 0.168 289.4);
Tailwind
colors: {
  custom: {
    50: '#896dbe',
    500: '#5134a2',
    950: '#000000',
  },
}
SCSS
$custom: #5134a2;
$custom-light: #896dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5134a2",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 255.818,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.16778,
    "h": 289.4
  },
  "luminance": 0.06814
}

Semantic roles & 50–950 ramp

primary
#5134A2
secondary
#AABE74
accent
#DB4DB5
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5134A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5134A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva