#54247B#54247B

#54247B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.142 H 305.9°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#54247B
RGBrgb(84, 36, 123)
HSLhsl(273, 55%, 31%)
HSVhsv(273, 71%, 48%)
CMYKcmyk(31.7%, 70.7%, 0%, 51.8%)
CIE-LABlab(25.49, 39.00, -40.62)
CIE-LCHlch(25.49, 56.31, 313.83°)
OKLaboklab(37.49% 0.0834 -0.1152)
OKLCHoklch(37.49% 0.142 305.9)
XYZxyz(7.8614, 4.5767, 19.2043)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54247B #4B7B24
analogous
#28247B #54247B #7B2476
triadic
#54247B #7B5424 #247B54
tetradic
#54247B #7B2824 #4B7B24 #24767B
square
#54247B #7B2824 #4B7B24 #24767B
split-complementary
#54247B #767B24 #247B28
monochromatic
#13081C #34164C #54247B #7432AA #934ECB

Accessibility & contrast

On white

10.96
#54247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#54247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54247B
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54247B#FFFFFF#000000##FFFFFF
##54247B1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#093D79
Tritanopia (blue-blind)
#4D374C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54247b;
/* rgb */ color: rgb(84, 36, 123);
/* oklch */ color: oklch(37.5% 0.142 305.9);
Tailwind
colors: {
  custom: {
    50: '#8863a2',
    500: '#54247b',
    950: '#000000',
  },
}
SCSS
$custom: #54247b;
$custom-light: #8863a2;
$custom-dark: #000000;
JSON
{
  "hex": "#54247b",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 273.103,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37486,
    "c": 0.14225,
    "h": 305.9
  },
  "luminance": 0.04577
}

Semantic roles & 50–950 ramp

primary
#54247B
secondary
#78AD4D
accent
#DE4A8C
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54247B

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

Preview Lab → · Contrast checker → · Palette generator →

#54247B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva