#54219C#54219C

#54219C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.183 H 295.6°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#54219C
RGBrgb(84, 33, 156)
HSLhsl(265, 65%, 37%)
HSVhsv(265, 79%, 61%)
CMYKcmyk(46.2%, 78.8%, 0%, 38.8%)
CIE-LABlab(27.77, 48.93, -57.43)
CIE-LCHlch(27.77, 75.45, 310.43°)
OKLaboklab(39.96% 0.079 -0.1646)
OKLCHoklch(39.96% 0.183 295.6)
XYZxyz(10.1991, 5.3726, 31.9457)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54219C #699C21
analogous
#212C9C #54219C #92219C
triadic
#54219C #9C5421 #219C54
tetradic
#54219C #9C212C #699C21 #219C92
square
#54219C #9C212C #699C21 #219C92
split-complementary
#54219C #9C9221 #2C9C21
monochromatic
#1E0C37 #391669 #54219C #6F2CCF #915BDC

Accessibility & contrast

On white

10.12
#54219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#54219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54219C
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54219C#FFFFFF#000000##FFFFFF
##54219C1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#40435E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54219c;
/* rgb */ color: rgb(84, 33, 156);
/* oklch */ color: oklch(40.0% 0.183 295.6);
Tailwind
colors: {
  custom: {
    50: '#8c63ba',
    500: '#54219c',
    950: '#000000',
  },
}
SCSS
$custom: #54219c;
$custom-light: #8c63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54219c",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 264.878,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39958,
    "c": 0.18259,
    "h": 295.6
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#54219C
secondary
#95C158
accent
#E840A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #54219C

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

Preview Lab → · Contrast checker → · Palette generator →

#54219C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva