#54209C#54209C

#54209C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.184 H 295.8°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#54209C
RGBrgb(84, 32, 156)
HSLhsl(265, 66%, 37%)
HSVhsv(265, 79%, 61%)
CMYKcmyk(46.2%, 79.5%, 0%, 38.8%)
CIE-LABlab(27.62, 49.36, -57.67)
CIE-LCHlch(27.62, 75.91, 310.56°)
OKLaboklab(39.85% 0.0798 -0.1653)
OKLCHoklch(39.85% 0.184 295.8)
XYZxyz(10.1718, 5.3179, 31.9366)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54209C #689C20
analogous
#202A9C #54209C #92209C
triadic
#54209C #9C5420 #209C54
tetradic
#54209C #9C202A #689C20 #209C92
square
#54209C #9C202A #689C20 #209C92
split-complementary
#54209C #9C9220 #2A9C20
monochromatic
#1D0B36 #391669 #54209C #6F2ACF #9159DD

Accessibility & contrast

On white

10.18
#54209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#54209C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54209C
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54209C#FFFFFF#000000##FFFFFF
##54209C1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#40435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54209c;
/* rgb */ color: rgb(84, 32, 156);
/* oklch */ color: oklch(39.9% 0.184 295.8);
Tailwind
colors: {
  custom: {
    50: '#8c62ba',
    500: '#54209c',
    950: '#000000',
  },
}
SCSS
$custom: #54209c;
$custom-light: #8c62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54209c",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 265.161,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39854,
    "c": 0.18357,
    "h": 295.8
  },
  "luminance": 0.05318
}

Semantic roles & 50–950 ramp

primary
#54209C
secondary
#94C157
accent
#E93FA2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #54209C

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

Preview Lab → · Contrast checker → · Palette generator →

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