#54157D#54157D

#54157D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.162 H 307.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#54157D
RGBrgb(84, 21, 125)
HSLhsl(276, 71%, 29%)
HSVhsv(276, 83%, 49%)
CMYKcmyk(32.8%, 83.2%, 0%, 51%)
CIE-LABlab(23.34, 46.06, -45.38)
CIE-LCHlch(23.34, 64.66, 315.43°)
OKLaboklab(36.02% 0.0979 -0.1291)
OKLCHoklch(36.02% 0.162 307.2)
XYZxyz(7.6252, 3.9019, 19.7495)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54157D #3E7D15
analogous
#20157D #54157D #7D1572
triadic
#54157D #7D5415 #157D54
tetradic
#54157D #7D2015 #3E7D15 #15727D
square
#54157D #7D2015 #3E7D15 #15727D
split-complementary
#54157D #727D15 #157D20
monochromatic
#12041A #310C49 #54157D #771EB1 #9830DC

Accessibility & contrast

On white

11.80
#54157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#54157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54157D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54157D#FFFFFF#000000##FFFFFF
##54157D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4D314A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54157d;
/* rgb */ color: rgb(84, 21, 125);
/* oklch */ color: oklch(36.0% 0.162 307.2);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54157d',
    950: '#000000',
  },
}
SCSS
$custom: #54157d;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54157d",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 276.346,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.16207,
    "h": 307.2
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#54157D
secondary
#6AB23C
accent
#EE3A81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54157D

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

Preview Lab → · Contrast checker → · Palette generator →

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