#54175A#54175A

#54175A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.126 H 324.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#54175A
RGBrgb(84, 23, 90)
HSLhsl(295, 59%, 22%)
HSVhsv(295, 74%, 35%)
CMYKcmyk(6.7%, 74.4%, 0%, 64.7%)
CIE-LABlab(20.97, 37.60, -26.47)
CIE-LCHlch(20.97, 45.99, 324.86°)
OKLaboklab(33.5% 0.1016 -0.0737)
OKLCHoklch(33.5% 0.126 324)
XYZxyz(5.8079, 3.2361, 9.9896)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54175A #1D5A17
analogous
#33175A #54175A #5A173F
triadic
#54175A #5A5417 #175A54
tetradic
#54175A #5A3317 #1D5A17 #173F5A
square
#54175A #5A3317 #1D5A17 #173F5A
split-complementary
#54175A #3F5A17 #175A33
monochromatic
#170618 #270B29 #54175A #81238B #AF30BB

Accessibility & contrast

On white

12.75
#54175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#54175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54175A
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54175A#FFFFFF#000000##FFFFFF
##54175A1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5C
Deuteranopia (green-blind)
#233558
Tritanopia (blue-blind)
#562236
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54175a;
/* rgb */ color: rgb(84, 23, 90);
/* oklch */ color: oklch(33.5% 0.126 324.0);
Tailwind
colors: {
  custom: {
    50: '#875a89',
    500: '#54175a',
    950: '#000000',
  },
}
SCSS
$custom: #54175a;
$custom-light: #875a89;
$custom-dark: #000000;
JSON
{
  "hex": "#54175a",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 294.627,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.1255,
    "h": 324
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#54175A
secondary
#44913C
accent
#E24553
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #54175A

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

Preview Lab → · Contrast checker → · Palette generator →

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