#54175F#54175F

#54175F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.130 H 321.1°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#54175F
RGBrgb(84, 23, 95)
HSLhsl(291, 61%, 23%)
HSVhsv(291, 76%, 37%)
CMYKcmyk(11.6%, 75.8%, 0%, 62.7%)
CIE-LABlab(21.30, 38.63, -29.26)
CIE-LCHlch(21.30, 48.46, 322.86°)
OKLaboklab(33.84% 0.1014 -0.0818)
OKLCHoklch(33.84% 0.13 321.1)
XYZxyz(6.0279, 3.3242, 11.1484)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54175F #225F17
analogous
#30175F #54175F #5F1746
triadic
#54175F #5F5417 #175F54
tetradic
#54175F #5F3017 #225F17 #17465F
square
#54175F #5F3017 #225F17 #17465F
split-complementary
#54175F #465F17 #175F30
monochromatic
#160619 #280B2E #54175F #802390 #AB2FC2

Accessibility & contrast

On white

12.61
#54175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54175F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54175F#FFFFFF#000000##FFFFFF
##54175F1.0012.611.6612.61
#FFFFFF12.611.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#1F355D
Tritanopia (blue-blind)
#552439
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54175f;
/* rgb */ color: rgb(84, 23, 95);
/* oklch */ color: oklch(33.8% 0.130 321.1);
Tailwind
colors: {
  custom: {
    50: '#875b8d',
    500: '#54175f',
    950: '#000000',
  },
}
SCSS
$custom: #54175f;
$custom-light: #875b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#54175f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 290.833,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33843,
    "c": 0.1303,
    "h": 321.1
  },
  "luminance": 0.03324
}

Semantic roles & 50–950 ramp

primary
#54175F
secondary
#4A963C
accent
#E4445C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54175F

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

Preview Lab → · Contrast checker → · Palette generator →

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