#54208E#54208E

#54208E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.168 H 299.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#54208E
RGBrgb(84, 32, 142)
HSLhsl(268, 63%, 34%)
HSVhsv(268, 77%, 56%)
CMYKcmyk(40.8%, 77.5%, 0%, 44.3%)
CIE-LABlab(26.36, 45.75, -51.12)
CIE-LCHlch(26.36, 68.60, 311.83°)
OKLaboklab(38.59% 0.0838 -0.1461)
OKLCHoklch(38.59% 0.168 299.8)
XYZxyz(9.0539, 4.8707, 26.0491)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54208E #5A8E20
analogous
#20238E #54208E #8B208E
triadic
#54208E #8E5420 #208E54
tetradic
#54208E #8E2023 #5A8E20 #208E8B
square
#54208E #8E2023 #5A8E20 #208E8B
split-complementary
#54208E #8E8B20 #238E20
monochromatic
#19092A #36155C #54208E #722BC0 #9151D8

Accessibility & contrast

On white

10.64
#54208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#54208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54208E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54208E#FFFFFF#000000##FFFFFF
##54208E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#463D56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54208e;
/* rgb */ color: rgb(84, 32, 142);
/* oklch */ color: oklch(38.6% 0.168 299.8);
Tailwind
colors: {
  custom: {
    50: '#8a61b0',
    500: '#54208e',
    950: '#000000',
  },
}
SCSS
$custom: #54208e;
$custom-light: #8a61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#54208e",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 268.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38587,
    "c": 0.1684,
    "h": 299.8
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#54208E
secondary
#88BB4F
accent
#E64298
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54208E

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

Preview Lab → · Contrast checker → · Palette generator →

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