#54277E#54277E

#54277E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.142 H 304.2°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#54277E
RGBrgb(84, 39, 126)
HSLhsl(271, 53%, 32%)
HSVhsv(271, 69%, 49%)
CMYKcmyk(33.3%, 69%, 0%, 50.6%)
CIE-LABlab(26.28, 38.21, -41.25)
CIE-LCHlch(26.28, 56.23, 312.81°)
OKLaboklab(38.12% 0.0795 -0.1171)
OKLCHoklch(38.12% 0.142 304.2)
XYZxyz(8.1467, 4.8422, 20.2401)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54277E #517E27
analogous
#28277E #54277E #7E277D
triadic
#54277E #7E5427 #277E54
tetradic
#54277E #7E2827 #517E27 #277D7E
square
#54277E #7E2827 #517E27 #277D7E
split-complementary
#54277E #7D7E27 #277E28
monochromatic
#160A21 #35194F #54277E #7335AD #9255CA

Accessibility & contrast

On white

10.67
#54277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#54277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54277E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54277E#FFFFFF#000000##FFFFFF
##54277E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#083E7C
Tritanopia (blue-blind)
#4C3A4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54277e;
/* rgb */ color: rgb(84, 39, 126);
/* oklch */ color: oklch(38.1% 0.142 304.2);
Tailwind
colors: {
  custom: {
    50: '#8864a4',
    500: '#54277e',
    950: '#000000',
  },
}
SCSS
$custom: #54277e;
$custom-light: #8864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#54277e",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 271.034,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38122,
    "c": 0.14152,
    "h": 304.2
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#54277E
secondary
#7FAF52
accent
#DC4C91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54277E

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

Preview Lab → · Contrast checker → · Palette generator →

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