#54208F#54208F

#54208F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.169 H 299.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#54208F
RGBrgb(84, 32, 143)
HSLhsl(268, 63%, 34%)
HSVhsv(268, 78%, 56%)
CMYKcmyk(41.3%, 77.6%, 0%, 43.9%)
CIE-LABlab(26.45, 46.01, -51.60)
CIE-LCHlch(26.45, 69.13, 311.72°)
OKLaboklab(38.67% 0.0835 -0.1475)
OKLCHoklch(38.67% 0.169 299.5)
XYZxyz(9.1293, 4.9009, 26.4463)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54208F #5B8F20
analogous
#20248F #54208F #8C208F
triadic
#54208F #8F5420 #208F54
tetradic
#54208F #8F2024 #5B8F20 #208F8C
square
#54208F #8F2024 #5B8F20 #208F8C
split-complementary
#54208F #8F8C20 #248F20
monochromatic
#190A2B #37155D #54208F #712BC1 #9051D8

Accessibility & contrast

On white

10.60
#54208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54208F
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54208F#FFFFFF#000000##FFFFFF
##54208F1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54208f;
/* rgb */ color: rgb(84, 32, 143);
/* oklch */ color: oklch(38.7% 0.169 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a61b1',
    500: '#54208f',
    950: '#000000',
  },
}
SCSS
$custom: #54208f;
$custom-light: #8a61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54208f",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 268.108,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38675,
    "c": 0.16949,
    "h": 299.5
  },
  "luminance": 0.04901
}

Semantic roles & 50–950 ramp

primary
#54208F
secondary
#89BB4F
accent
#E64199
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54208F

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

Preview Lab → · Contrast checker → · Palette generator →

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