#54208D#54208D

#54208D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.167 H 300.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#54208D
RGBrgb(84, 32, 141)
HSLhsl(269, 63%, 34%)
HSVhsv(269, 77%, 55%)
CMYKcmyk(40.4%, 77.3%, 0%, 44.7%)
CIE-LABlab(26.28, 45.50, -50.64)
CIE-LCHlch(26.28, 68.07, 311.94°)
OKLaboklab(38.5% 0.084 -0.1447)
OKLCHoklch(38.5% 0.167 300.2)
XYZxyz(8.9792, 4.8408, 25.6554)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54208D #598D20
analogous
#20228D #54208D #8B208D
triadic
#54208D #8D5420 #208D54
tetradic
#54208D #8D2022 #598D20 #208D8B
square
#54208D #8D2022 #598D20 #208D8B
split-complementary
#54208D #8D8B20 #228D20
monochromatic
#190929 #36155B #54208D #722BBF #9150D7

Accessibility & contrast

On white

10.67
#54208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54208D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54208D#FFFFFF#000000##FFFFFF
##54208D1.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)
#003E90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#473C55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54208d;
/* rgb */ color: rgb(84, 32, 141);
/* oklch */ color: oklch(38.5% 0.167 300.2);
Tailwind
colors: {
  custom: {
    50: '#8a61af',
    500: '#54208d',
    950: '#000000',
  },
}
SCSS
$custom: #54208d;
$custom-light: #8a61af;
$custom-dark: #000000;
JSON
{
  "hex": "#54208d",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 268.624,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.16731,
    "h": 300.2
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#54208D
secondary
#87BA4E
accent
#E64298
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54208D

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

Preview Lab → · Contrast checker → · Palette generator →

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