#5134B2#5134B2

#5134B2 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.188 H 286.4°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5134B2
RGBrgb(81, 52, 178)
HSLhsl(254, 55%, 45%)
HSVhsv(254, 71%, 70%)
CMYKcmyk(54.5%, 70.8%, 0%, 30.2%)
CIE-LABlab(32.74, 45.22, -62.55)
CIE-LCHlch(32.74, 77.19, 305.86°)
OKLaboklab(44% 0.053 -0.1799)
OKLCHoklch(44% 0.188 286.4)
XYZxyz(12.6548, 7.4190, 42.8760)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134B2 #95B234
analogous
#3456B2 #5134B2 #9034B2
triadic
#5134B2 #B25134 #34B251
tetradic
#5134B2 #B23456 #95B234 #34B290
square
#5134B2 #B23456 #95B234 #34B290
split-complementary
#5134B2 #B29034 #56B234
monochromatic
#261853 #3B2683 #5134B2 #7156CE #9985DB

Accessibility & contrast

On white

8.45
#5134B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5134B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134B2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134B2#FFFFFF#000000##FFFFFF
##5134B21.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0049B0
Tritanopia (blue-blind)
#28556F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5134b2;
/* rgb */ color: rgb(81, 52, 178);
/* oklch */ color: oklch(44.0% 0.188 286.4);
Tailwind
colors: {
  custom: {
    50: '#8c6eca',
    500: '#5134b2',
    950: '#000000',
  },
}
SCSS
$custom: #5134b2;
$custom-light: #8c6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5134b2",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 253.81,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43996,
    "c": 0.18752,
    "h": 286.4
  },
  "luminance": 0.0742
}

Semantic roles & 50–950 ramp

primary
#5134B2
secondary
#B4C57D
accent
#DE4ABC
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5134B2

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

Preview Lab → · Contrast checker → · Palette generator →

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