#54297A#54297A

#54297A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.1% C 0.134 H 305.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#54297A
RGBrgb(84, 41, 122)
HSLhsl(272, 50%, 32%)
HSVhsv(272, 66%, 48%)
CMYKcmyk(31.1%, 66.4%, 0%, 52.2%)
CIE-LABlab(26.38, 36.10, -38.56)
CIE-LCHlch(26.38, 52.82, 313.12°)
OKLaboklab(38.1% 0.0774 -0.1092)
OKLCHoklch(38.1% 0.134 305.3)
XYZxyz(7.9612, 4.8759, 18.9303)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54297A #4F7A29
analogous
#2C297A #54297A #7A2978
triadic
#54297A #7A5429 #297A54
tetradic
#54297A #7A2C29 #4F7A29 #29787A
square
#54297A #7A2C29 #4F7A29 #29787A
split-complementary
#54297A #787A29 #297A2C
monochromatic
#150A1E #341A4C #54297A #7438A8 #9257C7

Accessibility & contrast

On white

10.63
#54297A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54297A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54297A
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54297A#FFFFFF#000000##FFFFFF
##54297A1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7D
Deuteranopia (green-blind)
#153F78
Tritanopia (blue-blind)
#4D3A4D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54297a;
/* rgb */ color: rgb(84, 41, 122);
/* oklch */ color: oklch(38.1% 0.134 305.3);
Tailwind
colors: {
  custom: {
    50: '#8766a1',
    500: '#54297a',
    950: '#000000',
  },
}
SCSS
$custom: #54297a;
$custom-light: #8766a1;
$custom-dark: #000000;
JSON
{
  "hex": "#54297a",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 122
  },
  "hsl": {
    "h": 271.852,
    "s": 49.693,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38099,
    "c": 0.13386,
    "h": 305.3
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#54297A
secondary
#7DAC53
accent
#D94F90
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54297A

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

Preview Lab → · Contrast checker → · Palette generator →

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