#54187A#54187A

#54187A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.156 H 308.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#54187A
RGBrgb(84, 24, 122)
HSLhsl(277, 67%, 29%)
HSVhsv(277, 80%, 48%)
CMYKcmyk(31.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(23.48, 44.22, -43.24)
CIE-LCHlch(23.48, 61.85, 315.64°)
OKLaboklab(36.04% 0.0961 -0.1229)
OKLCHoklch(36.04% 0.156 308)
XYZxyz(7.4949, 3.9433, 18.7749)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54187A #3E7A18
analogous
#23187A #54187A #7A186F
triadic
#54187A #7A5418 #187A54
tetradic
#54187A #7A2318 #3E7A18 #186F7A
square
#54187A #7A2318 #3E7A18 #186F7A
split-complementary
#54187A #6F7A18 #187A23
monochromatic
#12051A #310E47 #54187A #7722AD #9835D7

Accessibility & contrast

On white

11.74
#54187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#54187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54187A
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54187A#FFFFFF#000000##FFFFFF
##54187A1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4E3149
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54187a;
/* rgb */ color: rgb(84, 24, 122);
/* oklch */ color: oklch(36.0% 0.156 308.0);
Tailwind
colors: {
  custom: {
    50: '#885ca1',
    500: '#54187a',
    950: '#000000',
  },
}
SCSS
$custom: #54187a;
$custom-light: #885ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#54187a",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 276.735,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36036,
    "c": 0.15602,
    "h": 308
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#54187A
secondary
#6AAF3F
accent
#EA3E81
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54187A

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

Preview Lab → · Contrast checker → · Palette generator →

#54187A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva