#54249C#54249C

#54249C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.180 H 295.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#54249C
RGBrgb(84, 36, 156)
HSLhsl(264, 63%, 38%)
HSVhsv(264, 77%, 61%)
CMYKcmyk(46.2%, 76.9%, 0%, 38.8%)
CIE-LABlab(28.24, 47.59, -56.66)
CIE-LCHlch(28.24, 74.00, 310.03°)
OKLaboklab(40.28% 0.0765 -0.1624)
OKLCHoklch(40.28% 0.18 295.2)
XYZxyz(10.2862, 5.5466, 31.9747)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54249C #6C9C24
analogous
#24309C #54249C #90249C
triadic
#54249C #9C5424 #249C54
tetradic
#54249C #9C2430 #6C9C24 #249C90
square
#54249C #9C2430 #6C9C24 #249C90
split-complementary
#54249C #9C9024 #309C24
monochromatic
#1E0D39 #39196A #54249C #6F2FCE #9160DA

Accessibility & contrast

On white

9.96
#54249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#54249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54249C
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54249C#FFFFFF#000000##FFFFFF
##54249C1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#40445F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #54249c;
/* rgb */ color: rgb(84, 36, 156);
/* oklch */ color: oklch(40.3% 0.180 295.2);
Tailwind
colors: {
  custom: {
    50: '#8b64ba',
    500: '#54249c',
    950: '#000000',
  },
}
SCSS
$custom: #54249c;
$custom-light: #8b64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54249c",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 264,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40285,
    "c": 0.17951,
    "h": 295.2
  },
  "luminance": 0.05547
}

Semantic roles & 50–950 ramp

primary
#54249C
secondary
#98BF5C
accent
#E642A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54249C

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

Preview Lab → · Contrast checker → · Palette generator →

#54249C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva