#54135F#54135F

#54135F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.135 H 321.4°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#54135F
RGBrgb(84, 19, 95)
HSLhsl(291, 67%, 22%)
HSVhsv(291, 80%, 37%)
CMYKcmyk(11.6%, 80%, 0%, 62.7%)
CIE-LABlab(20.74, 40.22, -30.15)
CIE-LCHlch(20.74, 50.27, 323.14°)
OKLaboklab(33.45% 0.1057 -0.0844)
OKLCHoklch(33.45% 0.135 321.4)
XYZxyz(5.9544, 3.1771, 11.1239)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54135F #1E5F13
analogous
#2E135F #54135F #5F1344
triadic
#54135F #5F5413 #135F54
tetradic
#54135F #5F2E13 #1E5F13 #13445F
square
#54135F #5F2E13 #1E5F13 #13445F
split-complementary
#54135F #445F13 #135F2E
monochromatic
#17051A #27092C #54135F #811D92 #AE27C5

Accessibility & contrast

On white

12.84
#54135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#54135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54135F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54135F#FFFFFF#000000##FFFFFF
##54135F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1D345D
Tritanopia (blue-blind)
#552238
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54135f;
/* rgb */ color: rgb(84, 19, 95);
/* oklch */ color: oklch(33.4% 0.135 321.4);
Tailwind
colors: {
  custom: {
    50: '#87598d',
    500: '#54135f',
    950: '#000000',
  },
}
SCSS
$custom: #54135f;
$custom-light: #87598d;
$custom-dark: #000000;
JSON
{
  "hex": "#54135f",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 291.316,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33445,
    "c": 0.13525,
    "h": 321.4
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#54135F
secondary
#459737
accent
#EA3E57
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54135F

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

Preview Lab → · Contrast checker → · Palette generator →

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