#54207D#54207D

#54207D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.150 H 305.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#54207D
RGBrgb(84, 32, 125)
HSLhsl(274, 59%, 31%)
HSVhsv(274, 74%, 49%)
CMYKcmyk(32.8%, 74.4%, 0%, 51%)
CIE-LABlab(24.95, 41.46, -42.77)
CIE-LCHlch(24.95, 59.57, 314.11°)
OKLaboklab(37.15% 0.0876 -0.1215)
OKLCHoklch(37.15% 0.15 305.8)
XYZxyz(7.8735, 4.3986, 19.8323)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54207D #497D20
analogous
#25207D #54207D #7D2077
triadic
#54207D #7D5420 #207D54
tetradic
#54207D #7D2520 #497D20 #20777D
square
#54207D #7D2520 #497D20 #20777D
split-complementary
#54207D #777D20 #207D25
monochromatic
#13071C #33144C #54207D #752CAE #9447D0

Accessibility & contrast

On white

11.17
#54207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54207D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54207D#FFFFFF#000000##FFFFFF
##54207D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4D364C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54207d;
/* rgb */ color: rgb(84, 32, 125);
/* oklch */ color: oklch(37.1% 0.150 305.8);
Tailwind
colors: {
  custom: {
    50: '#8861a3',
    500: '#54207d',
    950: '#000000',
  },
}
SCSS
$custom: #54207d;
$custom-light: #8861a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54207d",
  "rgb": {
    "r": 84,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 273.548,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.1498,
    "h": 305.8
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#54207D
secondary
#76B049
accent
#E2458B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54207D

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

Preview Lab → · Contrast checker → · Palette generator →

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