#54209B#54209B

#54209B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.182 H 296.0°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#54209B
RGBrgb(84, 32, 155)
HSLhsl(265, 66%, 37%)
HSVhsv(265, 79%, 61%)
CMYKcmyk(45.8%, 79.4%, 0%, 39.2%)
CIE-LABlab(27.53, 49.10, -57.21)
CIE-LCHlch(27.53, 75.40, 310.64°)
OKLaboklab(39.76% 0.0801 -0.164)
OKLCHoklch(39.76% 0.183 296)
XYZxyz(10.0875, 5.2842, 31.4925)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54209B #679B20
analogous
#202A9B #54209B #92209B
triadic
#54209B #9B5420 #209B54
tetradic
#54209B #9B202A #679B20 #209B92
square
#54209B #9B202A #679B20 #209B92
split-complementary
#54209B #9B9220 #2A9B20
monochromatic
#1D0B36 #391668 #54209B #6F2ACE #9159DD

Accessibility & contrast

On white

10.21
#54209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54209B
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54209B#FFFFFF#000000##FFFFFF
##54209B1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#40425D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54209b;
/* rgb */ color: rgb(84, 32, 155);
/* oklch */ color: oklch(39.8% 0.182 296.0);
Tailwind
colors: {
  custom: {
    50: '#8c62ba',
    500: '#54209b',
    950: '#000000',
  },
}
SCSS
$custom: #54209b;
$custom-light: #8c62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54209b",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 265.366,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39761,
    "c": 0.1825,
    "h": 296
  },
  "luminance": 0.05284
}

Semantic roles & 50–950 ramp

primary
#54209B
secondary
#94C156
accent
#E93FA1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #54209B

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

Preview Lab → · Contrast checker → · Palette generator →

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