#54207F#54207F

#54207F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.152 H 305.0°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#54207F
RGBrgb(84, 32, 127)
HSLhsl(273, 60%, 31%)
HSVhsv(273, 75%, 50%)
CMYKcmyk(33.9%, 74.8%, 0%, 50.2%)
CIE-LABlab(25.11, 41.96, -43.78)
CIE-LCHlch(25.11, 60.64, 313.79°)
OKLaboklab(37.31% 0.0872 -0.1245)
OKLCHoklch(37.31% 0.152 305)
XYZxyz(8.0026, 4.4502, 20.5119)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54207F #4B7F20
analogous
#24207F #54207F #7F207A
triadic
#54207F #7F5420 #207F54
tetradic
#54207F #7F2420 #4B7F20 #207A7F
square
#54207F #7F2420 #4B7F20 #207A7F
split-complementary
#54207F #7A7F20 #207F24
monochromatic
#13071D #34144E #54207F #742CB0 #9348D1

Accessibility & contrast

On white

11.11
#54207F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#54207F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54207F
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54207F#FFFFFF#000000##FFFFFF
##54207F1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#4C374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54207f;
/* rgb */ color: rgb(84, 32, 127);
/* oklch */ color: oklch(37.3% 0.152 305.0);
Tailwind
colors: {
  custom: {
    50: '#8861a5',
    500: '#54207f',
    950: '#000000',
  },
}
SCSS
$custom: #54207f;
$custom-light: #8861a5;
$custom-dark: #000000;
JSON
{
  "hex": "#54207f",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 127
  },
  "hsl": {
    "h": 272.842,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37309,
    "c": 0.15199,
    "h": 305
  },
  "luminance": 0.0445
}

Semantic roles & 50–950 ramp

primary
#54207F
secondary
#78B249
accent
#E3458C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54207F

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

Preview Lab → · Contrast checker → · Palette generator →

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