#54158C#54158C

#54158C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.177 H 301.8°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#54158C
RGBrgb(84, 21, 140)
HSLhsl(272, 74%, 32%)
HSVhsv(272, 85%, 55%)
CMYKcmyk(40%, 85%, 0%, 45.1%)
CIE-LABlab(24.69, 49.59, -52.62)
CIE-LCHlch(24.69, 72.31, 313.31°)
OKLaboklab(37.36% 0.0932 -0.1504)
OKLCHoklch(37.36% 0.177 301.8)
XYZxyz(8.6568, 4.3146, 25.1826)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54158C #4D8C15
analogous
#19158C #54158C #8C1589
triadic
#54158C #8C5415 #158C54
tetradic
#54158C #8C1915 #4D8C15 #15898C
square
#54158C #8C1915 #4D8C15 #15898C
split-complementary
#54158C #898C15 #158C19
monochromatic
#140522 #340D57 #54158C #741DC1 #933AE1

Accessibility & contrast

On white

11.27
#54158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54158C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54158C#FFFFFF#000000##FFFFFF
##54158C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#473752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54158c;
/* rgb */ color: rgb(84, 21, 140);
/* oklch */ color: oklch(37.4% 0.177 301.8);
Tailwind
colors: {
  custom: {
    50: '#8a5caf',
    500: '#54158c',
    950: '#000000',
  },
}
SCSS
$custom: #54158c;
$custom-light: #8a5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#54158c",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 271.765,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37362,
    "c": 0.17694,
    "h": 301.8
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#54158C
secondary
#7BC03D
accent
#F1378E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54158C

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

Preview Lab → · Contrast checker → · Palette generator →

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