#54188B#54188B

#54188B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.173 H 301.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#54188B
RGBrgb(84, 24, 139)
HSLhsl(271, 71%, 32%)
HSVhsv(271, 83%, 55%)
CMYKcmyk(39.6%, 82.7%, 0%, 45.5%)
CIE-LABlab(24.96, 48.29, -51.55)
CIE-LCHlch(24.96, 70.63, 313.13°)
OKLaboklab(37.52% 0.0914 -0.1473)
OKLCHoklch(37.52% 0.173 301.8)
XYZxyz(8.6419, 4.4021, 24.8155)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188B #4F8B18
analogous
#1A188B #54188B #8B1889
triadic
#54188B #8B5418 #188B54
tetradic
#54188B #8B1A18 #4F8B18 #18898B
square
#54188B #8B1A18 #4F8B18 #18898B
split-complementary
#54188B #898B18 #188B1A
monochromatic
#150623 #340F57 #54188B #7421BF #923FDE

Accessibility & contrast

On white

11.17
#54188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54188B
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188B#FFFFFF#000000##FFFFFF
##54188B1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54188b;
/* rgb */ color: rgb(84, 24, 139);
/* oklch */ color: oklch(37.5% 0.173 301.8);
Tailwind
colors: {
  custom: {
    50: '#8a5eae',
    500: '#54188b',
    950: '#000000',
  },
}
SCSS
$custom: #54188b;
$custom-light: #8a5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#54188b",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 271.304,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.17331,
    "h": 301.8
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#54188B
secondary
#7DBE40
accent
#ED3A90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54188B

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

Preview Lab → · Contrast checker → · Palette generator →

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