#54187C#54187C

#54187C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.158 H 307.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#54187C
RGBrgb(84, 24, 124)
HSLhsl(276, 68%, 29%)
HSVhsv(276, 81%, 49%)
CMYKcmyk(32.3%, 80.6%, 0%, 51.4%)
CIE-LABlab(23.65, 44.69, -44.25)
CIE-LCHlch(23.65, 62.89, 315.29°)
OKLaboklab(36.21% 0.0957 -0.1258)
OKLCHoklch(36.21% 0.158 307.2)
XYZxyz(7.6201, 3.9934, 19.4342)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54187C #407C18
analogous
#22187C #54187C #7C1872
triadic
#54187C #7C5418 #187C54
tetradic
#54187C #7C2218 #407C18 #18727C
square
#54187C #7C2218 #407C18 #18727C
split-complementary
#54187C #727C18 #187C22
monochromatic
#11051A #310E49 #54187C #7722AF #9736D8

Accessibility & contrast

On white

11.68
#54187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54187C
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54187C#FFFFFF#000000##FFFFFF
##54187C1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#4D314A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54187c;
/* rgb */ color: rgb(84, 24, 124);
/* oklch */ color: oklch(36.2% 0.158 307.2);
Tailwind
colors: {
  custom: {
    50: '#895da3',
    500: '#54187c',
    950: '#000000',
  },
}
SCSS
$custom: #54187c;
$custom-light: #895da3;
$custom-dark: #000000;
JSON
{
  "hex": "#54187c",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 276,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36205,
    "c": 0.15805,
    "h": 307.2
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#54187C
secondary
#6DB13F
accent
#EA3D83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54187C

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

Preview Lab → · Contrast checker → · Palette generator →

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