#54277A#54277A

#54277A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.137 H 305.7°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#54277A
RGBrgb(84, 39, 122)
HSLhsl(273, 52%, 32%)
HSVhsv(273, 68%, 48%)
CMYKcmyk(31.1%, 68%, 0%, 52.2%)
CIE-LABlab(25.98, 37.18, -39.19)
CIE-LCHlch(25.98, 54.03, 313.49°)
OKLaboklab(37.81% 0.0799 -0.1111)
OKLCHoklch(37.81% 0.137 305.7)
XYZxyz(7.8938, 4.7411, 18.9078)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54277A #4D7A27
analogous
#2B277A #54277A #7A2777
triadic
#54277A #7A5427 #277A54
tetradic
#54277A #7A2B27 #4D7A27 #27777A
square
#54277A #7A2B27 #4D7A27 #27777A
split-complementary
#54277A #777A27 #277A2B
monochromatic
#14091D #34184C #54277A #7436A8 #9353C8

Accessibility & contrast

On white

10.78
#54277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#54277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54277A
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54277A#FFFFFF#000000##FFFFFF
##54277A1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#113E78
Tritanopia (blue-blind)
#4D394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #54277a;
/* rgb */ color: rgb(84, 39, 122);
/* oklch */ color: oklch(37.8% 0.137 305.7);
Tailwind
colors: {
  custom: {
    50: '#8864a1',
    500: '#54277a',
    950: '#000000',
  },
}
SCSS
$custom: #54277a;
$custom-light: #8864a1;
$custom-dark: #000000;
JSON
{
  "hex": "#54277a",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 272.53,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37814,
    "c": 0.13682,
    "h": 305.7
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#54277A
secondary
#7BAC51
accent
#DB4D8E
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54277A

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

Preview Lab → · Contrast checker → · Palette generator →

#54277A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva