#54219F#54219F

#54219F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.186 H 294.9°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#54219F
RGBrgb(84, 33, 159)
HSLhsl(264, 66%, 38%)
HSVhsv(264, 79%, 62%)
CMYKcmyk(47.2%, 79.2%, 0%, 37.6%)
CIE-LABlab(28.05, 49.72, -58.80)
CIE-LCHlch(28.05, 77.00, 310.21°)
OKLaboklab(40.24% 0.0781 -0.1686)
OKLCHoklch(40.24% 0.186 294.9)
XYZxyz(10.4563, 5.4754, 33.3001)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54219F #6C9F21
analogous
#212D9F #54219F #93219F
triadic
#54219F #9F5421 #219F54
tetradic
#54219F #9F212D #6C9F21 #219F93
square
#54219F #9F212D #6C9F21 #219F93
split-complementary
#54219F #9F9321 #2D9F21
monochromatic
#1E0C3A #39166C #54219F #6F2CD2 #915DDD

Accessibility & contrast

On white

10.02
#54219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#54219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54219F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54219F#FFFFFF#000000##FFFFFF
##54219F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3E4460
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54219f;
/* rgb */ color: rgb(84, 33, 159);
/* oklch */ color: oklch(40.2% 0.186 294.9);
Tailwind
colors: {
  custom: {
    50: '#8c63bc',
    500: '#54219f',
    950: '#000000',
  },
}
SCSS
$custom: #54219f;
$custom-light: #8c63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54219f",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 264.286,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40236,
    "c": 0.18585,
    "h": 294.9
  },
  "luminance": 0.05476
}

Semantic roles & 50–950 ramp

primary
#54219F
secondary
#98C25A
accent
#E93FA4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54219F

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

Preview Lab → · Contrast checker → · Palette generator →

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