#54218B#54218B

#54218B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.164 H 300.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#54218B
RGBrgb(84, 33, 139)
HSLhsl(269, 62%, 34%)
HSVhsv(269, 76%, 55%)
CMYKcmyk(39.6%, 76.3%, 0%, 45.5%)
CIE-LABlab(26.26, 44.53, -49.42)
CIE-LCHlch(26.26, 66.52, 312.02°)
OKLaboklab(38.44% 0.0836 -0.1411)
OKLCHoklch(38.44% 0.164 300.6)
XYZxyz(8.8591, 4.8365, 24.8879)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54218B #588B21
analogous
#21238B #54218B #89218B
triadic
#54218B #8B5421 #218B54
tetradic
#54218B #8B2123 #588B21 #218B89
square
#54218B #8B2123 #588B21 #218B89
split-complementary
#54218B #8B8921 #238B21
monochromatic
#180A28 #36155A #54218B #722DBC #9151D6

Accessibility & contrast

On white

10.67
#54218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#54218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54218B
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54218B#FFFFFF#000000##FFFFFF
##54218B1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#483C54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54218b;
/* rgb */ color: rgb(84, 33, 139);
/* oklch */ color: oklch(38.4% 0.164 300.6);
Tailwind
colors: {
  custom: {
    50: '#8a62ae',
    500: '#54218b',
    950: '#000000',
  },
}
SCSS
$custom: #54218b;
$custom-light: #8a62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54218b",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 268.868,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38437,
    "c": 0.16399,
    "h": 300.6
  },
  "luminance": 0.04837
}

Semantic roles & 50–950 ramp

primary
#54218B
secondary
#86B94F
accent
#E54397
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54218B

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

Preview Lab → · Contrast checker → · Palette generator →

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