#54175D#54175D

#54175D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.128 H 322.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#54175D
RGBrgb(84, 23, 93)
HSLhsl(292, 60%, 23%)
HSVhsv(292, 75%, 36%)
CMYKcmyk(9.7%, 75.3%, 0%, 63.5%)
CIE-LABlab(21.16, 38.21, -28.15)
CIE-LCHlch(21.16, 47.46, 323.62°)
OKLaboklab(33.7% 0.1015 -0.0786)
OKLCHoklch(33.7% 0.128 322.2)
XYZxyz(5.9381, 3.2883, 10.6757)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54175D #205D17
analogous
#31175D #54175D #5D1743
triadic
#54175D #5D5417 #175D54
tetradic
#54175D #5D3117 #205D17 #17435D
square
#54175D #5D3117 #205D17 #17435D
split-complementary
#54175D #435D17 #175D31
monochromatic
#160619 #280B2C #54175D #80238E #AD2FBF

Accessibility & contrast

On white

12.67
#54175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#54175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54175D
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54175D#FFFFFF#000000##FFFFFF
##54175D1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#21355B
Tritanopia (blue-blind)
#552338
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54175d;
/* rgb */ color: rgb(84, 23, 93);
/* oklch */ color: oklch(33.7% 0.128 322.2);
Tailwind
colors: {
  custom: {
    50: '#875b8b',
    500: '#54175d',
    950: '#000000',
  },
}
SCSS
$custom: #54175d;
$custom-light: #875b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#54175d",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 292.286,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.33703,
    "c": 0.12837,
    "h": 322.2
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#54175D
secondary
#47943C
accent
#E34459
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #54175D

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

Preview Lab → · Contrast checker → · Palette generator →

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