#54174F#54174F

#54174F is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.115 H 331.3°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#54174F
RGBrgb(84, 23, 79)
HSLhsl(305, 57%, 21%)
HSVhsv(305, 73%, 33%)
CMYKcmyk(0%, 72.6%, 6%, 67.1%)
CIE-LABlab(20.29, 35.47, -20.15)
CIE-LCHlch(20.29, 40.79, 330.40°)
OKLaboklab(32.8% 0.1012 -0.0554)
OKLCHoklch(32.8% 0.115 331.3)
XYZxyz(5.3738, 3.0625, 7.7037)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54174F #17541C
analogous
#3A1754 #54174F #541730
triadic
#54174F #4F5417 #174F54
tetradic
#54174F #543A17 #17541C #173054
square
#54174F #543A17 #17541C #173054
split-complementary
#54174F #305417 #17543A
monochromatic
#180717 #240A22 #54174F #84247C #B431A9

Accessibility & contrast

On white

13.02
#54174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#54174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54174F
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54174F#FFFFFF#000000##FFFFFF
##54174F1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132B51
Deuteranopia (green-blind)
#29344D
Tritanopia (blue-blind)
#581D30
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54174f;
/* rgb */ color: rgb(84, 23, 79);
/* oklch */ color: oklch(32.8% 0.115 331.3);
Tailwind
colors: {
  custom: {
    50: '#865a80',
    500: '#54174f',
    950: '#000000',
  },
}
SCSS
$custom: #54174f;
$custom-light: #865a80;
$custom-dark: #000000;
JSON
{
  "hex": "#54174f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 304.918,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32795,
    "c": 0.11536,
    "h": 331.3
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#54174F
secondary
#3C8B42
accent
#E05448
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #54174F

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

Preview Lab → · Contrast checker → · Palette generator →

#54174F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva