#54218F#54218F

#54218F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.168 H 299.4°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#54218F
RGBrgb(84, 33, 143)
HSLhsl(268, 63%, 35%)
HSVhsv(268, 77%, 56%)
CMYKcmyk(41.3%, 76.9%, 0%, 43.9%)
CIE-LABlab(26.61, 45.56, -51.34)
CIE-LCHlch(26.61, 68.64, 311.59°)
OKLaboklab(38.78% 0.0826 -0.1467)
OKLCHoklch(38.78% 0.168 299.4)
XYZxyz(9.1567, 4.9556, 26.4554)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54218F #5C8F21
analogous
#21258F #54218F #8B218F
triadic
#54218F #8F5421 #218F54
tetradic
#54218F #8F2125 #5C8F21 #218F8B
square
#54218F #8F2125 #5C8F21 #218F8B
split-complementary
#54218F #8F8B21 #258F21
monochromatic
#1A0A2C #37165D #54218F #712CC1 #9053D7

Accessibility & contrast

On white

10.55
#54218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54218F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54218F#FFFFFF#000000##FFFFFF
##54218F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#463E57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54218f;
/* rgb */ color: rgb(84, 33, 143);
/* oklch */ color: oklch(38.8% 0.168 299.4);
Tailwind
colors: {
  custom: {
    50: '#8a62b1',
    500: '#54218f',
    950: '#000000',
  },
}
SCSS
$custom: #54218f;
$custom-light: #8a62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54218f",
  "rgb": {
    "r": 84,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 267.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.16839,
    "h": 299.4
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#54218F
secondary
#8ABB51
accent
#E6429A
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54218F

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

Preview Lab → · Contrast checker → · Palette generator →

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