#54189D#54189D

#54189D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.192 H 296.4°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#54189D
RGBrgb(84, 24, 157)
HSLhsl(267, 73%, 35%)
HSVhsv(267, 85%, 62%)
CMYKcmyk(46.5%, 84.7%, 0%, 38.4%)
CIE-LABlab(26.66, 52.71, -59.87)
CIE-LCHlch(26.66, 79.77, 311.36°)
OKLaboklab(39.21% 0.0852 -0.1717)
OKLCHoklch(39.21% 0.192 296.4)
XYZxyz(10.0670, 4.9722, 32.3211)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54189D #619D18
analogous
#181E9D #54189D #97189D
triadic
#54189D #9D5418 #189D54
tetradic
#54189D #9D181E #619D18 #189D97
square
#54189D #9D181E #619D18 #189D97
split-complementary
#54189D #9D9718 #1E9D18
monochromatic
#1B0833 #381068 #54189D #7020D2 #904CE4

Accessibility & contrast

On white

10.53
#54189D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#54189D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54189D
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54189D#FFFFFF#000000##FFFFFF
##54189D1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#003D9B
Tritanopia (blue-blind)
#3F405D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54189d;
/* rgb */ color: rgb(84, 24, 157);
/* oklch */ color: oklch(39.2% 0.192 296.4);
Tailwind
colors: {
  custom: {
    50: '#8c5fbb',
    500: '#54189d',
    950: '#000000',
  },
}
SCSS
$custom: #54189d;
$custom-light: #8c5fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#54189d",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 157
  },
  "hsl": {
    "h": 267.068,
    "s": 73.481,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.19164,
    "h": 296.4
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#54189D
secondary
#8EC54B
accent
#F0389D
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #54189D

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

Preview Lab → · Contrast checker → · Palette generator →

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