#54175B#54175B

#54175B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.126 H 323.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#54175B
RGBrgb(84, 23, 91)
HSLhsl(294, 60%, 22%)
HSVhsv(294, 75%, 36%)
CMYKcmyk(7.7%, 74.7%, 0%, 64.3%)
CIE-LABlab(21.03, 37.80, -27.03)
CIE-LCHlch(21.03, 46.47, 324.43°)
OKLaboklab(33.57% 0.1016 -0.0753)
OKLCHoklch(33.57% 0.126 323.4)
XYZxyz(5.8507, 3.2533, 10.2153)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54175B #1E5B17
analogous
#32175B #54175B #5B1740
triadic
#54175B #5B5417 #175B54
tetradic
#54175B #5B3217 #1E5B17 #17405B
square
#54175B #5B3217 #1E5B17 #17405B
split-complementary
#54175B #405B17 #175B32
monochromatic
#170618 #270B2A #54175B #81238C #AE30BD

Accessibility & contrast

On white

12.72
#54175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54175B
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54175B#FFFFFF#000000##FFFFFF
##54175B1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5D
Deuteranopia (green-blind)
#223559
Tritanopia (blue-blind)
#562337
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54175b;
/* rgb */ color: rgb(84, 23, 91);
/* oklch */ color: oklch(33.6% 0.126 323.4);
Tailwind
colors: {
  custom: {
    50: '#875a8a',
    500: '#54175b',
    950: '#000000',
  },
}
SCSS
$custom: #54175b;
$custom-light: #875a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#54175b",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 293.824,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33566,
    "c": 0.12646,
    "h": 323.4
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#54175B
secondary
#45923C
accent
#E34555
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #54175B

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

Preview Lab → · Contrast checker → · Palette generator →

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