#54188E#54188E

#54188E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.176 H 300.8°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#54188E
RGBrgb(84, 24, 142)
HSLhsl(271, 71%, 33%)
HSVhsv(271, 83%, 56%)
CMYKcmyk(40.8%, 83.1%, 0%, 44.3%)
CIE-LABlab(25.23, 49.02, -52.97)
CIE-LCHlch(25.23, 72.17, 312.78°)
OKLaboklab(37.8% 0.0904 -0.1514)
OKLCHoklch(37.8% 0.176 300.8)
XYZxyz(8.8641, 4.4910, 25.9858)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188E #528E18
analogous
#19188E #54188E #8E188D
triadic
#54188E #8E5418 #188E54
tetradic
#54188E #8E1918 #528E18 #188D8E
square
#54188E #8E1918 #528E18 #188D8E
split-complementary
#54188E #8D8E18 #188E19
monochromatic
#160625 #350F5A #54188E #7321C2 #9241DF

Accessibility & contrast

On white

11.06
#54188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#54188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54188E
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188E#FFFFFF#000000##FFFFFF
##54188E1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#473954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54188e;
/* rgb */ color: rgb(84, 24, 142);
/* oklch */ color: oklch(37.8% 0.176 300.8);
Tailwind
colors: {
  custom: {
    50: '#8a5eb0',
    500: '#54188e',
    950: '#000000',
  },
}
SCSS
$custom: #54188e;
$custom-light: #8a5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#54188e",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 270.508,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37798,
    "c": 0.17637,
    "h": 300.8
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#54188E
secondary
#80C042
accent
#EE3A92
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54188E

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

Preview Lab → · Contrast checker → · Palette generator →

#54188E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva