#54148C#54148C

#54148C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.178 H 301.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#54148C
RGBrgb(84, 20, 140)
HSLhsl(272, 75%, 31%)
HSVhsv(272, 86%, 55%)
CMYKcmyk(40%, 85.7%, 0%, 45.1%)
CIE-LABlab(24.57, 49.93, -52.80)
CIE-LCHlch(24.57, 72.67, 313.40°)
OKLaboklab(37.28% 0.0939 -0.1509)
OKLCHoklch(37.28% 0.178 301.9)
XYZxyz(8.6388, 4.2785, 25.1766)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54148C #4C8C14
analogous
#18148C #54148C #8C1488
triadic
#54148C #8C5414 #148C54
tetradic
#54148C #8C1814 #4C8C14 #14888C
square
#54148C #8C1814 #4C8C14 #14888C
split-complementary
#54148C #888C14 #148C18
monochromatic
#140521 #340C56 #54148C #741CC2 #9338E3

Accessibility & contrast

On white

11.32
#54148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54148C
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54148C#FFFFFF#000000##FFFFFF
##54148C1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54148c;
/* rgb */ color: rgb(84, 20, 140);
/* oklch */ color: oklch(37.3% 0.178 301.9);
Tailwind
colors: {
  custom: {
    50: '#8a5caf',
    500: '#54148c',
    950: '#000000',
  },
}
SCSS
$custom: #54148c;
$custom-light: #8a5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#54148c",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 272,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37284,
    "c": 0.17776,
    "h": 301.9
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#54148C
secondary
#79C03C
accent
#F2368E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0410
muted
#7D797F

Preview Lab

Preview with #54148C

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

Preview Lab → · Contrast checker → · Palette generator →

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