#54209F#54209F

#54209F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.187 H 295.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#54209F
RGBrgb(84, 32, 159)
HSLhsl(265, 66%, 37%)
HSVhsv(265, 80%, 62%)
CMYKcmyk(47.2%, 79.9%, 0%, 37.6%)
CIE-LABlab(27.90, 50.14, -59.04)
CIE-LCHlch(27.90, 77.46, 310.34°)
OKLaboklab(40.13% 0.0789 -0.1693)
OKLCHoklch(40.13% 0.187 295)
XYZxyz(10.4290, 5.4208, 33.2910)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54209F #6B9F20
analogous
#202B9F #54209F #94209F
triadic
#54209F #9F5420 #209F54
tetradic
#54209F #9F202B #6B9F20 #209F94
square
#54209F #9F202B #6B9F20 #209F94
split-complementary
#54209F #9F9420 #2B9F20
monochromatic
#1E0B39 #39166C #54209F #6F2AD2 #915BDE

Accessibility & contrast

On white

10.08
#54209F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#54209F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54209F
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54209F#FFFFFF#000000##FFFFFF
##54209F1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#3E4460
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54209f;
/* rgb */ color: rgb(84, 32, 159);
/* oklch */ color: oklch(40.1% 0.187 295.0);
Tailwind
colors: {
  custom: {
    50: '#8c62bc',
    500: '#54209f',
    950: '#000000',
  },
}
SCSS
$custom: #54209f;
$custom-light: #8c62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54209f",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 159
  },
  "hsl": {
    "h": 264.567,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40134,
    "c": 0.18681,
    "h": 295
  },
  "luminance": 0.05421
}

Semantic roles & 50–950 ramp

primary
#54209F
secondary
#97C259
accent
#E93EA3
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #54209F

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

Preview Lab → · Contrast checker → · Palette generator →

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