#54277D#54277D

#54277D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.140 H 304.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#54277D
RGBrgb(84, 39, 125)
HSLhsl(271, 52%, 32%)
HSVhsv(271, 69%, 49%)
CMYKcmyk(32.8%, 68.8%, 0%, 51%)
CIE-LABlab(26.21, 37.95, -40.73)
CIE-LCHlch(26.21, 55.67, 312.97°)
OKLaboklab(38.04% 0.0796 -0.1156)
OKLCHoklch(38.04% 0.14 304.5)
XYZxyz(8.0825, 4.8166, 19.9019)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54277D #507D27
analogous
#29277D #54277D #7D277B
triadic
#54277D #7D5427 #277D54
tetradic
#54277D #7D2927 #507D27 #277B7D
square
#54277D #7D2927 #507D27 #277B7D
split-complementary
#54277D #7B7D27 #277D29
monochromatic
#150A20 #35184E #54277D #7336AC #9255CA

Accessibility & contrast

On white

10.70
#54277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#54277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54277D
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54277D#FFFFFF#000000##FFFFFF
##54277D1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#0B3E7B
Tritanopia (blue-blind)
#4C3A4E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54277d;
/* rgb */ color: rgb(84, 39, 125);
/* oklch */ color: oklch(38.0% 0.140 304.5);
Tailwind
colors: {
  custom: {
    50: '#8864a3',
    500: '#54277d',
    950: '#000000',
  },
}
SCSS
$custom: #54277d;
$custom-light: #8864a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54277d",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 271.395,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38044,
    "c": 0.14035,
    "h": 304.5
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #54277D

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

Preview Lab → · Contrast checker → · Palette generator →

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