#54207E#54207E

#54207E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.151 H 305.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#54207E
RGBrgb(84, 32, 126)
HSLhsl(273, 59%, 31%)
HSVhsv(273, 75%, 49%)
CMYKcmyk(33.3%, 74.6%, 0%, 50.6%)
CIE-LABlab(25.03, 41.71, -43.27)
CIE-LCHlch(25.03, 60.10, 313.95°)
OKLaboklab(37.23% 0.0874 -0.123)
OKLCHoklch(37.23% 0.151 305.4)
XYZxyz(7.9377, 4.4243, 20.1704)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54207E #4A7E20
analogous
#25207E #54207E #7E2079
triadic
#54207E #7E5420 #207E54
tetradic
#54207E #7E2520 #4A7E20 #20797E
square
#54207E #7E2520 #4A7E20 #20797E
split-complementary
#54207E #797E20 #207E25
monochromatic
#13071C #33144D #54207E #752CAF #9348D0

Accessibility & contrast

On white

11.14
#54207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54207E
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54207E#FFFFFF#000000##FFFFFF
##54207E1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#4C364D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54207e;
/* rgb */ color: rgb(84, 32, 126);
/* oklch */ color: oklch(37.2% 0.151 305.4);
Tailwind
colors: {
  custom: {
    50: '#8861a4',
    500: '#54207e',
    950: '#000000',
  },
}
SCSS
$custom: #54207e;
$custom-light: #8861a4;
$custom-dark: #000000;
JSON
{
  "hex": "#54207e",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 273.191,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.1509,
    "h": 305.4
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#54207E
secondary
#77B149
accent
#E3458C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54207E

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

Preview Lab → · Contrast checker → · Palette generator →

#54207E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva