#54218E#54218E

#54218E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.167 H 299.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#54218E
RGBrgb(84, 33, 142)
HSLhsl(268, 62%, 34%)
HSVhsv(268, 77%, 56%)
CMYKcmyk(40.8%, 76.8%, 0%, 44.3%)
CIE-LABlab(26.52, 45.30, -50.86)
CIE-LCHlch(26.52, 68.11, 311.69°)
OKLaboklab(38.7% 0.0829 -0.1453)
OKLCHoklch(38.7% 0.167 299.7)
XYZxyz(9.0813, 4.9254, 26.0582)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54218E #5B8E21
analogous
#21258E #54218E #8B218E
triadic
#54218E #8E5421 #218E54
tetradic
#54218E #8E2125 #5B8E21 #218E8B
square
#54218E #8E2125 #5B8E21 #218E8B
split-complementary
#54218E #8E8B21 #258E21
monochromatic
#190A2B #37155C #54218E #712DC0 #9052D7

Accessibility & contrast

On white

10.58
#54218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#54218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54218E
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54218E#FFFFFF#000000##FFFFFF
##54218E1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#463D56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54218e;
/* rgb */ color: rgb(84, 33, 142);
/* oklch */ color: oklch(38.7% 0.167 299.7);
Tailwind
colors: {
  custom: {
    50: '#8a62b0',
    500: '#54218e',
    950: '#000000',
  },
}
SCSS
$custom: #54218e;
$custom-light: #8a62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#54218e",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 268.073,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38698,
    "c": 0.16729,
    "h": 299.7
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#54218E
secondary
#89BA50
accent
#E54299
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54218E

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

Preview Lab → · Contrast checker → · Palette generator →

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