#54219E#54219E

#54219E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.185 H 295.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#54219E
RGBrgb(84, 33, 158)
HSLhsl(264, 65%, 37%)
HSVhsv(264, 79%, 62%)
CMYKcmyk(46.8%, 79.1%, 0%, 38%)
CIE-LABlab(27.96, 49.45, -58.35)
CIE-LCHlch(27.96, 76.49, 310.28°)
OKLaboklab(40.14% 0.0784 -0.1673)
OKLCHoklch(40.14% 0.185 295.1)
XYZxyz(10.3699, 5.4409, 32.8449)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54219E #6B9E21
analogous
#212D9E #54219E #93219E
triadic
#54219E #9E5421 #219E54
tetradic
#54219E #9E212D #6B9E21 #219E93
square
#54219E #9E212D #6B9E21 #219E93
split-complementary
#54219E #9E9321 #2D9E21
monochromatic
#1E0C39 #39166B #54219E #6F2CD1 #915CDD

Accessibility & contrast

On white

10.06
#54219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#54219E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54219E
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54219E#FFFFFF#000000##FFFFFF
##54219E1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#3F445F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54219e;
/* rgb */ color: rgb(84, 33, 158);
/* oklch */ color: oklch(40.1% 0.185 295.1);
Tailwind
colors: {
  custom: {
    50: '#8c63bc',
    500: '#54219e',
    950: '#000000',
  },
}
SCSS
$custom: #54219e;
$custom-light: #8c63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54219e",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 264.48,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40143,
    "c": 0.18477,
    "h": 295.1
  },
  "luminance": 0.05441
}

Semantic roles & 50–950 ramp

primary
#54219E
secondary
#97C159
accent
#E83FA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54219E

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

Preview Lab → · Contrast checker → · Palette generator →

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