#5134AE#5134AE

#5134AE is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.183 H 287.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5134AE
RGBrgb(81, 52, 174)
HSLhsl(254, 54%, 44%)
HSVhsv(254, 70%, 68%)
CMYKcmyk(53.4%, 70.1%, 0%, 31.8%)
CIE-LABlab(32.39, 44.03, -60.74)
CIE-LCHlch(32.39, 75.02, 305.94°)
OKLaboklab(43.64% 0.0538 -0.1745)
OKLCHoklch(43.64% 0.183 287.1)
XYZxyz(12.2590, 7.2607, 40.7917)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134AE #91AE34
analogous
#3454AE #5134AE #8E34AE
triadic
#5134AE #AE5134 #34AE51
tetradic
#5134AE #AE3454 #91AE34 #34AE8E
square
#5134AE #AE3454 #91AE34 #34AE8E
split-complementary
#5134AE #AE8E34 #54AE34
monochromatic
#251850 #3B267F #5134AE #7053CC #9783DA

Accessibility & contrast

On white

8.56
#5134AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5134AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134AE
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134AE#FFFFFF#000000##FFFFFF
##5134AE1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#2C546D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5134ae;
/* rgb */ color: rgb(81, 52, 174);
/* oklch */ color: oklch(43.6% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#8b6ec7',
    500: '#5134ae',
    950: '#000000',
  },
}
SCSS
$custom: #5134ae;
$custom-light: #8b6ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#5134ae",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 254.262,
    "s": 53.982,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.18264,
    "h": 287.1
  },
  "luminance": 0.07261
}

Semantic roles & 50–950 ramp

primary
#5134AE
secondary
#B2C37B
accent
#DD4ABA
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5134AE

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

Preview Lab → · Contrast checker → · Palette generator →

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