#54188D#54188D

#54188D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.175 H 301.2°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#54188D
RGBrgb(84, 24, 141)
HSLhsl(271, 71%, 32%)
HSVhsv(271, 83%, 55%)
CMYKcmyk(40.4%, 83%, 0%, 44.7%)
CIE-LABlab(25.14, 48.77, -52.50)
CIE-LCHlch(25.14, 71.66, 312.90°)
OKLaboklab(37.71% 0.0907 -0.15)
OKLCHoklch(37.71% 0.175 301.2)
XYZxyz(8.7893, 4.4611, 25.5922)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188D #518D18
analogous
#19188D #54188D #8D188C
triadic
#54188D #8D5418 #188D54
tetradic
#54188D #8D1918 #518D18 #188C8D
square
#54188D #8D1918 #518D18 #188C8D
split-complementary
#54188D #8C8D18 #188D19
monochromatic
#160624 #350F59 #54188D #7321C1 #9241DF

Accessibility & contrast

On white

11.10
#54188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#54188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54188D
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188D#FFFFFF#000000##FFFFFF
##54188D1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54188d;
/* rgb */ color: rgb(84, 24, 141);
/* oklch */ color: oklch(37.7% 0.175 301.2);
Tailwind
colors: {
  custom: {
    50: '#8a5eaf',
    500: '#54188d',
    950: '#000000',
  },
}
SCSS
$custom: #54188d;
$custom-light: #8a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#54188d",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 270.769,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37706,
    "c": 0.17535,
    "h": 301.2
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#54188D
secondary
#7FBF42
accent
#EE3A92
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54188D

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

Preview Lab → · Contrast checker → · Palette generator →

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