#5133B2#5133B2

#5133B2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.189 H 286.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#5133B2
RGBrgb(81, 51, 178)
HSLhsl(254, 55%, 45%)
HSVhsv(254, 71%, 70%)
CMYKcmyk(54.5%, 71.3%, 0%, 30.2%)
CIE-LABlab(32.55, 45.76, -62.87)
CIE-LCHlch(32.55, 77.76, 306.05°)
OKLaboklab(43.86% 0.0539 -0.1808)
OKLCHoklch(43.86% 0.189 286.6)
XYZxyz(12.6106, 7.3307, 42.8613)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5133B2 #94B233
analogous
#3355B2 #5133B2 #9033B2
triadic
#5133B2 #B25133 #33B251
tetradic
#5133B2 #B23355 #94B233 #33B290
square
#5133B2 #B23355 #94B233 #33B290
split-complementary
#5133B2 #B29033 #55B233
monochromatic
#261853 #3B2582 #5133B2 #7154CE #9884DC

Accessibility & contrast

On white

8.52
#5133B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5133B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5133B2
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5133B2#FFFFFF#000000##FFFFFF
##5133B21.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.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: #5133b2;
/* rgb */ color: rgb(81, 51, 178);
/* oklch */ color: oklch(43.9% 0.189 286.6);
Tailwind
colors: {
  custom: {
    50: '#8c6dca',
    500: '#5133b2',
    950: '#000000',
  },
}
SCSS
$custom: #5133b2;
$custom-light: #8c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5133b2",
  "rgb": {
    "r": 81,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 254.173,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43858,
    "c": 0.18865,
    "h": 286.6
  },
  "luminance": 0.07331
}

Semantic roles & 50–950 ramp

primary
#5133B2
secondary
#B4C57C
accent
#DF49BB
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5133B2

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

Preview Lab → · Contrast checker → · Palette generator →

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