#54157B#54157B

#54157B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.160 H 308.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#54157B
RGBrgb(84, 21, 123)
HSLhsl(277, 71%, 28%)
HSVhsv(277, 83%, 48%)
CMYKcmyk(31.7%, 82.9%, 0%, 51.8%)
CIE-LABlab(23.17, 45.59, -44.38)
CIE-LCHlch(23.17, 63.63, 315.77°)
OKLaboklab(35.85% 0.0985 -0.1262)
OKLCHoklch(35.85% 0.16 308)
XYZxyz(7.4987, 3.8513, 19.0834)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54157B #3C7B15
analogous
#21157B #54157B #7B156F
triadic
#54157B #7B5415 #157B54
tetradic
#54157B #7B2115 #3C7B15 #156F7B
square
#54157B #7B2115 #3C7B15 #156F7B
split-complementary
#54157B #6F7B15 #157B21
monochromatic
#12041A #300C47 #54157B #781EAF #992FDB

Accessibility & contrast

On white

11.86
#54157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54157B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54157B#FFFFFF#000000##FFFFFF
##54157B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#4E3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54157b;
/* rgb */ color: rgb(84, 21, 123);
/* oklch */ color: oklch(35.8% 0.160 308.0);
Tailwind
colors: {
  custom: {
    50: '#895ba2',
    500: '#54157b',
    950: '#000000',
  },
}
SCSS
$custom: #54157b;
$custom-light: #895ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#54157b",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 277.059,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35846,
    "c": 0.16009,
    "h": 308
  },
  "luminance": 0.03851
}

Semantic roles & 50–950 ramp

primary
#54157B
secondary
#68B03B
accent
#EE3A7F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54157B

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

Preview Lab → · Contrast checker → · Palette generator →

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