#54285C#54285C

#54285C is a dark, moderate purple. Relative luminance 0.042; OKLCH L 35.9% C 0.100 H 321.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#54285C
RGBrgb(84, 40, 92)
HSLhsl(291, 39%, 26%)
HSVhsv(291, 57%, 36%)
CMYKcmyk(8.7%, 56.5%, 0%, 63.9%)
CIE-LABlab(24.24, 29.39, -22.61)
CIE-LCHlch(24.24, 37.07, 322.43°)
OKLaboklab(35.92% 0.0781 -0.0626)
OKLCHoklch(35.92% 0.1 321.3)
XYZxyz(6.3465, 4.1754, 10.5948)
Luminance0.0418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54285C #305C28
analogous
#3A285C #54285C #5C284A
triadic
#54285C #5C5428 #285C54
tetradic
#54285C #5C3A28 #305C28 #284A5C
square
#54285C #5C3A28 #305C28 #284A5C
split-complementary
#54285C #4A5C28 #285C3A
monochromatic
#130915 #2D1531 #54285C #7B3B87 #A24DB1

Accessibility & contrast

On white

11.44
#54285C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#54285C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54285C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54285C#FFFFFF#000000##FFFFFF
##54285C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F365E
Deuteranopia (green-blind)
#2D3B5B
Tritanopia (blue-blind)
#552F3E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54285c;
/* rgb */ color: rgb(84, 40, 92);
/* oklch */ color: oklch(35.9% 0.100 321.3);
Tailwind
colors: {
  custom: {
    50: '#86648a',
    500: '#54285c',
    950: '#000000',
  },
}
SCSS
$custom: #54285c;
$custom-light: #86648a;
$custom-dark: #000000;
JSON
{
  "hex": "#54285c",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 92
  },
  "hsl": {
    "h": 290.769,
    "s": 39.394,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35921,
    "c": 0.10009,
    "h": 321.3
  },
  "luminance": 0.04175
}

Semantic roles & 50–950 ramp

primary
#54285C
secondary
#5B8F51
accent
#CF596B
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #54285C

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

Preview Lab → · Contrast checker → · Palette generator →

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