#5133AC#5133AC

#5133AC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.181 H 287.7°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5133AC
RGBrgb(81, 51, 172)
HSLhsl(255, 54%, 44%)
HSVhsv(255, 70%, 67%)
CMYKcmyk(52.9%, 70.3%, 0%, 32.5%)
CIE-LABlab(32.02, 43.99, -60.15)
CIE-LCHlch(32.02, 74.52, 306.18°)
OKLaboklab(43.32% 0.0551 -0.1728)
OKLCHoklch(43.32% 0.181 287.7)
XYZxyz(12.0214, 7.0950, 39.7578)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133AC #8EAC33
analogous
#3351AC #5133AC #8D33AC
triadic
#5133AC #AC5133 #33AC51
tetradic
#5133AC #AC3351 #8EAC33 #33AC8D
square
#5133AC #AC3351 #8EAC33 #33AC8D
split-complementary
#5133AC #AC8D33 #51AC33
monochromatic
#25174E #3B257D #5133AC #6F51CB #9680D9

Accessibility & contrast

On white

8.68
#5133AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5133AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133AC
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133AC#FFFFFF#000000##FFFFFF
##5133AC1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#2E526C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5133ac;
/* rgb */ color: rgb(81, 51, 172);
/* oklch */ color: oklch(43.3% 0.181 287.7);
Tailwind
colors: {
  custom: {
    50: '#8b6dc6',
    500: '#5133ac',
    950: '#000000',
  },
}
SCSS
$custom: #5133ac;
$custom-light: #8b6dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5133ac",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 172
  },
  "hsl": {
    "h": 254.876,
    "s": 54.26,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43321,
    "c": 0.18137,
    "h": 287.7
  },
  "luminance": 0.07096
}

Semantic roles & 50–950 ramp

primary
#5133AC
secondary
#B0C278
accent
#DE4AB9
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5133AC

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

Preview Lab → · Contrast checker → · Palette generator →

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