#54209D#54209D

#54209D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.185 H 295.5°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#54209D
RGBrgb(84, 32, 157)
HSLhsl(265, 66%, 37%)
HSVhsv(265, 80%, 62%)
CMYKcmyk(46.5%, 79.6%, 0%, 38.4%)
CIE-LABlab(27.71, 49.62, -58.13)
CIE-LCHlch(27.71, 76.43, 310.48°)
OKLaboklab(39.95% 0.0795 -0.1667)
OKLCHoklch(39.95% 0.185 295.5)
XYZxyz(10.2568, 5.3519, 32.3844)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54209D #699D20
analogous
#202A9D #54209D #93209D
triadic
#54209D #9D5420 #209D54
tetradic
#54209D #9D202A #699D20 #209D93
square
#54209D #9D202A #699D20 #209D93
split-complementary
#54209D #9D9320 #2A9D20
monochromatic
#1E0B37 #39166A #54209D #6F2AD0 #915ADD

Accessibility & contrast

On white

10.14
#54209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#54209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54209D
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54209D#FFFFFF#000000##FFFFFF
##54209D1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#3F435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54209d;
/* rgb */ color: rgb(84, 32, 157);
/* oklch */ color: oklch(39.9% 0.185 295.5);
Tailwind
colors: {
  custom: {
    50: '#8c62bb',
    500: '#54209d',
    950: '#000000',
  },
}
SCSS
$custom: #54209d;
$custom-light: #8c62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#54209d",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 264.96,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39947,
    "c": 0.18465,
    "h": 295.5
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #54209D

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

Preview Lab → · Contrast checker → · Palette generator →

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