#54157F#54157F

#54157F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.164 H 306.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#54157F
RGBrgb(84, 21, 127)
HSLhsl(276, 72%, 29%)
HSVhsv(276, 83%, 50%)
CMYKcmyk(33.9%, 83.5%, 0%, 50.2%)
CIE-LABlab(23.52, 46.52, -46.36)
CIE-LCHlch(23.52, 65.68, 315.10°)
OKLaboklab(36.19% 0.0974 -0.132)
OKLCHoklch(36.19% 0.164 306.4)
XYZxyz(7.7542, 3.9535, 20.4292)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54157F #407F15
analogous
#1F157F #54157F #7F1575
triadic
#54157F #7F5415 #157F54
tetradic
#54157F #7F1F15 #407F15 #15757F
square
#54157F #7F1F15 #407F15 #15757F
split-complementary
#54157F #757F15 #157F1F
monochromatic
#11041A #310C4A #54157F #771EB4 #9731DD

Accessibility & contrast

On white

11.73
#54157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#54157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54157F
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54157F#FFFFFF#000000##FFFFFF
##54157F1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4C324B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54157f;
/* rgb */ color: rgb(84, 21, 127);
/* oklch */ color: oklch(36.2% 0.164 306.4);
Tailwind
colors: {
  custom: {
    50: '#895ca5',
    500: '#54157f',
    950: '#000000',
  },
}
SCSS
$custom: #54157f;
$custom-light: #895ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#54157f",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 275.66,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36192,
    "c": 0.16404,
    "h": 306.4
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#54157F
secondary
#6DB43C
accent
#EE3983
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54157F

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

Preview Lab → · Contrast checker → · Palette generator →

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