#5133A2#5133A2

#5133A2 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.169 H 289.6°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#5133A2
RGBrgb(81, 51, 162)
HSLhsl(256, 52%, 42%)
HSVhsv(256, 69%, 64%)
CMYKcmyk(50%, 68.5%, 0%, 36.5%)
CIE-LABlab(31.17, 41.04, -55.53)
CIE-LCHlch(31.17, 69.05, 306.47°)
OKLaboklab(42.45% 0.0568 -0.1592)
OKLCHoklch(42.45% 0.169 289.6)
XYZxyz(11.0969, 6.7252, 34.8888)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133A2 #84A233
analogous
#334DA2 #5133A2 #8933A2
triadic
#5133A2 #A25133 #33A251
tetradic
#5133A2 #A2334D #84A233 #33A289
square
#5133A2 #A2334D #84A233 #33A289
split-complementary
#5133A2 #A28933 #4DA233
monochromatic
#221645 #3A2473 #5133A2 #6D4CC7 #937AD5

Accessibility & contrast

On white

8.95
#5133A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5133A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133A2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133A2#FFFFFF#000000##FFFFFF
##5133A21.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0047A0
Tritanopia (blue-blind)
#354F66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5133a2;
/* rgb */ color: rgb(81, 51, 162);
/* oklch */ color: oklch(42.4% 0.169 289.6);
Tailwind
colors: {
  custom: {
    50: '#896dbe',
    500: '#5133a2',
    950: '#000000',
  },
}
SCSS
$custom: #5133a2;
$custom-light: #896dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5133a2",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 162
  },
  "hsl": {
    "h": 256.216,
    "s": 52.113,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4245,
    "c": 0.16905,
    "h": 289.6
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#5133A2
secondary
#AABE73
accent
#DC4CB5
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5133A2

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

Preview Lab → · Contrast checker → · Palette generator →

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