#54188F#54188F

#54188F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.177 H 300.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#54188F
RGBrgb(84, 24, 143)
HSLhsl(270, 71%, 33%)
HSVhsv(270, 83%, 56%)
CMYKcmyk(41.3%, 83.2%, 0%, 43.9%)
CIE-LABlab(25.32, 49.26, -53.44)
CIE-LCHlch(25.32, 72.68, 312.67°)
OKLaboklab(37.89% 0.0901 -0.1528)
OKLCHoklch(37.89% 0.177 300.5)
XYZxyz(8.9395, 4.5212, 26.3830)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54188F #538F18
analogous
#19188F #54188F #8F188E
triadic
#54188F #8F5418 #188F54
tetradic
#54188F #8F1918 #538F18 #188E8F
square
#54188F #8F1918 #538F18 #188E8F
split-complementary
#54188F #8E8F18 #188F19
monochromatic
#160626 #350F5B #54188F #7321C3 #9142DF

Accessibility & contrast

On white

11.03
#54188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54188F
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54188F#FFFFFF#000000##FFFFFF
##54188F1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#463A55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54188f;
/* rgb */ color: rgb(84, 24, 143);
/* oklch */ color: oklch(37.9% 0.177 300.5);
Tailwind
colors: {
  custom: {
    50: '#8b5eb1',
    500: '#54188f',
    950: '#000000',
  },
}
SCSS
$custom: #54188f;
$custom-light: #8b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#54188f",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 270.252,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.17739,
    "h": 300.5
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#54188F
secondary
#81C043
accent
#EE3A93
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54188F

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

Preview Lab → · Contrast checker → · Palette generator →

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