#54157C#54157C

#54157C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.161 H 307.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#54157C
RGBrgb(84, 21, 124)
HSLhsl(277, 71%, 28%)
HSVhsv(277, 83%, 49%)
CMYKcmyk(32.3%, 83.1%, 0%, 51.4%)
CIE-LABlab(23.26, 45.83, -44.88)
CIE-LCHlch(23.26, 64.14, 315.60°)
OKLaboklab(35.93% 0.0982 -0.1277)
OKLCHoklch(35.93% 0.161 307.6)
XYZxyz(7.5616, 3.8765, 19.4148)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54157C #3D7C15
analogous
#20157C #54157C #7C1570
triadic
#54157C #7C5415 #157C54
tetradic
#54157C #7C2015 #3D7C15 #15707C
square
#54157C #7C2015 #3D7C15 #15707C
split-complementary
#54157C #707C15 #157C20
monochromatic
#12041A #310C48 #54157C #771EB0 #9930DC

Accessibility & contrast

On white

11.83
#54157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54157C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54157C#FFFFFF#000000##FFFFFF
##54157C1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4D3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54157c;
/* rgb */ color: rgb(84, 21, 124);
/* oklch */ color: oklch(35.9% 0.161 307.6);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54157c',
    950: '#000000',
  },
}
SCSS
$custom: #54157c;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54157c",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 276.699,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35932,
    "c": 0.16107,
    "h": 307.6
  },
  "luminance": 0.03876
}

Semantic roles & 50–950 ramp

primary
#54157C
secondary
#69B13C
accent
#EE3A80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54157C

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

Preview Lab → · Contrast checker → · Palette generator →

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