#54188A#54188A

#54188A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.172 H 302.1°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#54188A
RGBrgb(84, 24, 138)
HSLhsl(272, 70%, 32%)
HSVhsv(272, 83%, 54%)
CMYKcmyk(39.1%, 82.6%, 0%, 45.9%)
CIE-LABlab(24.87, 48.04, -51.07)
CIE-LCHlch(24.87, 70.12, 313.25°)
OKLaboklab(37.43% 0.0917 -0.1459)
OKLCHoklch(37.43% 0.172 302.1)
XYZxyz(8.5691, 4.3730, 24.4325)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188A #4E8A18
analogous
#1B188A #54188A #8A1887
triadic
#54188A #8A5418 #188A54
tetradic
#54188A #8A1B18 #4E8A18 #18878A
square
#54188A #8A1B18 #4E8A18 #18878A
split-complementary
#54188A #878A18 #188A1B
monochromatic
#150622 #340F56 #54188A #7421BE #923FDE

Accessibility & contrast

On white

11.20
#54188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54188A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188A#FFFFFF#000000##FFFFFF
##54188A1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54188a;
/* rgb */ color: rgb(84, 24, 138);
/* oklch */ color: oklch(37.4% 0.172 302.1);
Tailwind
colors: {
  custom: {
    50: '#8a5dad',
    500: '#54188a',
    950: '#000000',
  },
}
SCSS
$custom: #54188a;
$custom-light: #8a5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#54188a",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 271.579,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37433,
    "c": 0.1723,
    "h": 302.1
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#54188A
secondary
#7CBD40
accent
#ED3B8F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54188A

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

Preview Lab → · Contrast checker → · Palette generator →

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