#54219B#54219B

#54219B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.182 H 295.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#54219B
RGBrgb(84, 33, 155)
HSLhsl(265, 65%, 37%)
HSVhsv(265, 79%, 61%)
CMYKcmyk(45.8%, 78.7%, 0%, 39.2%)
CIE-LABlab(27.68, 48.67, -56.97)
CIE-LCHlch(27.68, 74.93, 310.51°)
OKLaboklab(39.87% 0.0793 -0.1633)
OKLCHoklch(39.87% 0.182 295.9)
XYZxyz(10.1148, 5.3388, 31.5016)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54219B #689B21
analogous
#212B9B #54219B #91219B
triadic
#54219B #9B5421 #219B54
tetradic
#54219B #9B212B #689B21 #219B91
square
#54219B #9B212B #689B21 #219B91
split-complementary
#54219B #9B9121 #2B9B21
monochromatic
#1D0C36 #391669 #54219B #6F2CCD #915ADC

Accessibility & contrast

On white

10.16
#54219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54219B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54219B#FFFFFF#000000##FFFFFF
##54219B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#40435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54219b;
/* rgb */ color: rgb(84, 33, 155);
/* oklch */ color: oklch(39.9% 0.182 295.9);
Tailwind
colors: {
  custom: {
    50: '#8b63ba',
    500: '#54219b',
    950: '#000000',
  },
}
SCSS
$custom: #54219b;
$custom-light: #8b63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54219b",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 265.082,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39866,
    "c": 0.18151,
    "h": 295.9
  },
  "luminance": 0.05339
}

Semantic roles & 50–950 ramp

primary
#54219B
secondary
#94C058
accent
#E840A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #54219B

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

Preview Lab → · Contrast checker → · Palette generator →

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