#54188C#54188C

#54188C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.174 H 301.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#54188C
RGBrgb(84, 24, 140)
HSLhsl(271, 71%, 32%)
HSVhsv(271, 83%, 55%)
CMYKcmyk(40%, 82.9%, 0%, 45.1%)
CIE-LABlab(25.05, 48.53, -52.02)
CIE-LCHlch(25.05, 71.14, 313.01°)
OKLaboklab(37.61% 0.0911 -0.1487)
OKLCHoklch(37.61% 0.174 301.5)
XYZxyz(8.7153, 4.4315, 25.2021)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188C #508C18
analogous
#1A188C #54188C #8C188A
triadic
#54188C #8C5418 #188C54
tetradic
#54188C #8C1A18 #508C18 #188A8C
square
#54188C #8C1A18 #508C18 #188A8C
split-complementary
#54188C #8A8C18 #188C1A
monochromatic
#150624 #350F58 #54188C #7321C0 #9240DE

Accessibility & contrast

On white

11.13
#54188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54188C
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188C#FFFFFF#000000##FFFFFF
##54188C1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#473953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54188c;
/* rgb */ color: rgb(84, 24, 140);
/* oklch */ color: oklch(37.6% 0.174 301.5);
Tailwind
colors: {
  custom: {
    50: '#8a5eaf',
    500: '#54188c',
    950: '#000000',
  },
}
SCSS
$custom: #54188c;
$custom-light: #8a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#54188c",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 271.034,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37615,
    "c": 0.17434,
    "h": 301.5
  },
  "luminance": 0.04432
}

Semantic roles & 50–950 ramp

primary
#54188C
secondary
#7EBF41
accent
#ED3A91
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54188C

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

Preview Lab → · Contrast checker → · Palette generator →

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