#54157A#54157A

#54157A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.159 H 308.4°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#54157A
RGBrgb(84, 21, 122)
HSLhsl(277, 71%, 28%)
HSVhsv(277, 83%, 48%)
CMYKcmyk(31.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(23.09, 45.36, -43.89)
CIE-LCHlch(23.09, 63.12, 315.95°)
OKLaboklab(35.76% 0.0988 -0.1247)
OKLCHoklch(35.76% 0.159 308.4)
XYZxyz(7.4364, 3.8264, 18.7554)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54157A #3B7A15
analogous
#22157A #54157A #7A156D
triadic
#54157A #7A5415 #157A54
tetradic
#54157A #7A2215 #3B7A15 #156D7A
square
#54157A #7A2215 #3B7A15 #156D7A
split-complementary
#54157A #6D7A15 #157A22
monochromatic
#12041A #300C46 #54157A #781EAE #9A2EDB

Accessibility & contrast

On white

11.90
#54157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#54157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54157A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54157A#FFFFFF#000000##FFFFFF
##54157A1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4E2F48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54157a;
/* rgb */ color: rgb(84, 21, 122);
/* oklch */ color: oklch(35.8% 0.159 308.4);
Tailwind
colors: {
  custom: {
    50: '#895ba1',
    500: '#54157a',
    950: '#000000',
  },
}
SCSS
$custom: #54157a;
$custom-light: #895ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#54157a",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 277.426,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.1591,
    "h": 308.4
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#54157A
secondary
#67AF3B
accent
#ED3A7E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54157A

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

Preview Lab → · Contrast checker → · Palette generator →

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