#54208C#54208C

#54208C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.166 H 300.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#54208C
RGBrgb(84, 32, 140)
HSLhsl(269, 63%, 34%)
HSVhsv(269, 77%, 55%)
CMYKcmyk(40%, 77.1%, 0%, 45.1%)
CIE-LABlab(26.19, 45.24, -50.16)
CIE-LCHlch(26.19, 67.55, 312.05°)
OKLaboklab(38.41% 0.0843 -0.1433)
OKLCHoklch(38.41% 0.166 300.5)
XYZxyz(8.9051, 4.8112, 25.2654)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54208C #588C20
analogous
#20228C #54208C #8A208C
triadic
#54208C #8C5420 #208C54
tetradic
#54208C #8C2022 #588C20 #208C8A
square
#54208C #8C2022 #588C20 #208C8A
split-complementary
#54208C #8C8A20 #228C20
monochromatic
#180928 #36155A #54208C #722BBE #9150D7

Accessibility & contrast

On white

10.70
#54208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#54208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54208C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54208C#FFFFFF#000000##FFFFFF
##54208C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#473C55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54208c;
/* rgb */ color: rgb(84, 32, 140);
/* oklch */ color: oklch(38.4% 0.166 300.5);
Tailwind
colors: {
  custom: {
    50: '#8a61ae',
    500: '#54208c',
    950: '#000000',
  },
}
SCSS
$custom: #54208c;
$custom-light: #8a61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54208c",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 268.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.16622,
    "h": 300.5
  },
  "luminance": 0.04811
}

Semantic roles & 50–950 ramp

primary
#54208C
secondary
#86BA4E
accent
#E64297
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54208C

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

Preview Lab → · Contrast checker → · Palette generator →

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