#54148F#54148F

#54148F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.181 H 300.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#54148F
RGBrgb(84, 20, 143)
HSLhsl(271, 75%, 32%)
HSVhsv(271, 86%, 56%)
CMYKcmyk(41.3%, 86%, 0%, 43.9%)
CIE-LABlab(24.85, 50.64, -54.21)
CIE-LCHlch(24.85, 74.19, 313.05°)
OKLaboklab(37.56% 0.0928 -0.155)
OKLCHoklch(37.56% 0.181 300.9)
XYZxyz(8.8630, 4.3682, 26.3575)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54148F #4F8F14
analogous
#17148F #54148F #8F148C
triadic
#54148F #8F5414 #148F54
tetradic
#54148F #8F1714 #4F8F14 #148C8F
square
#54148F #8F1714 #4F8F14 #148C8F
split-complementary
#54148F #8C8F14 #148F17
monochromatic
#150524 #340C59 #54148F #741CC5 #923AE3

Accessibility & contrast

On white

11.21
#54148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54148F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54148F
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54148F#FFFFFF#000000##FFFFFF
##54148F1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#463854
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54148f;
/* rgb */ color: rgb(84, 20, 143);
/* oklch */ color: oklch(37.6% 0.181 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b5cb1',
    500: '#54148f',
    950: '#000000',
  },
}
SCSS
$custom: #54148f;
$custom-light: #8b5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#54148f",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 271.22,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37564,
    "c": 0.18072,
    "h": 300.9
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#54148F
secondary
#7DC33C
accent
#F23690
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54148F

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

Preview Lab → · Contrast checker → · Palette generator →

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