#5133AB#5133AB

#5133AB is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.180 H 287.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5133AB
RGBrgb(81, 51, 171)
HSLhsl(255, 54%, 44%)
HSVhsv(255, 70%, 67%)
CMYKcmyk(52.6%, 70.2%, 0%, 32.9%)
CIE-LABlab(31.94, 43.69, -59.70)
CIE-LCHlch(31.94, 73.98, 306.20°)
OKLaboklab(43.23% 0.0552 -0.1715)
OKLCHoklch(43.23% 0.18 287.9)
XYZxyz(11.9257, 7.0567, 39.2539)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133AB #8DAB33
analogous
#3351AB #5133AB #8D33AB
triadic
#5133AB #AB5133 #33AB51
tetradic
#5133AB #AB3351 #8DAB33 #33AB8D
square
#5133AB #AB3351 #8DAB33 #33AB8D
split-complementary
#5133AB #AB8D33 #51AB33
monochromatic
#24174D #3B257C #5133AB #6F50CB #967FD9

Accessibility & contrast

On white

8.71
#5133AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5133AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133AB
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133AB#FFFFFF#000000##FFFFFF
##5133AB1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#2F526B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5133ab;
/* rgb */ color: rgb(81, 51, 171);
/* oklch */ color: oklch(43.2% 0.180 287.9);
Tailwind
colors: {
  custom: {
    50: '#8b6dc5',
    500: '#5133ab',
    950: '#000000',
  },
}
SCSS
$custom: #5133ab;
$custom-light: #8b6dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5133ab",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 255,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43232,
    "c": 0.18015,
    "h": 287.9
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#5133AB
secondary
#AFC278
accent
#DD4AB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5133AB

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

Preview Lab → · Contrast checker → · Palette generator →

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