#54158D#54158D

#54158D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.5% C 0.178 H 301.5°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#54158D
RGBrgb(84, 21, 141)
HSLhsl(272, 74%, 32%)
HSVhsv(272, 85%, 55%)
CMYKcmyk(40.4%, 85.1%, 0%, 44.7%)
CIE-LABlab(24.78, 49.83, -53.09)
CIE-LCHlch(24.78, 72.81, 313.19°)
OKLaboklab(37.46% 0.0929 -0.1518)
OKLCHoklch(37.46% 0.178 301.5)
XYZxyz(8.7309, 4.3442, 25.5727)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54158D #4E8D15
analogous
#18158D #54158D #8D158A
triadic
#54158D #8D5415 #158D54
tetradic
#54158D #8D1815 #4E8D15 #158A8D
square
#54158D #8D1815 #4E8D15 #158A8D
split-complementary
#54158D #8A8D15 #158D18
monochromatic
#150522 #340D58 #54158D #741DC2 #923BE2

Accessibility & contrast

On white

11.24
#54158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54158D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54158D#FFFFFF#000000##FFFFFF
##54158D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#473853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54158d;
/* rgb */ color: rgb(84, 21, 141);
/* oklch */ color: oklch(37.5% 0.178 301.5);
Tailwind
colors: {
  custom: {
    50: '#8b5caf',
    500: '#54158d',
    950: '#000000',
  },
}
SCSS
$custom: #54158d;
$custom-light: #8b5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#54158d",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 271.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37455,
    "c": 0.17793,
    "h": 301.5
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#54158D
secondary
#7CC13D
accent
#F1378F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54158D

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

Preview Lab → · Contrast checker → · Palette generator →

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