#54187B#54187B

#54187B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.157 H 307.6°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#54187B
RGBrgb(84, 24, 123)
HSLhsl(276, 67%, 29%)
HSVhsv(276, 80%, 48%)
CMYKcmyk(31.7%, 80.5%, 0%, 51.8%)
CIE-LABlab(23.57, 44.46, -43.75)
CIE-LCHlch(23.57, 62.37, 315.46°)
OKLaboklab(36.12% 0.0959 -0.1243)
OKLCHoklch(36.12% 0.157 307.6)
XYZxyz(7.5572, 3.9683, 19.1029)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54187B #3F7B18
analogous
#23187B #54187B #7B1871
triadic
#54187B #7B5418 #187B54
tetradic
#54187B #7B2318 #3F7B18 #18717B
square
#54187B #7B2318 #3F7B18 #18717B
split-complementary
#54187B #717B18 #187B23
monochromatic
#11051A #310E48 #54187B #7722AE #9836D8

Accessibility & contrast

On white

11.71
#54187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54187B
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54187B#FFFFFF#000000##FFFFFF
##54187B1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54187b;
/* rgb */ color: rgb(84, 24, 123);
/* oklch */ color: oklch(36.1% 0.157 307.6);
Tailwind
colors: {
  custom: {
    50: '#895da2',
    500: '#54187b',
    950: '#000000',
  },
}
SCSS
$custom: #54187b;
$custom-light: #895da2;
$custom-dark: #000000;
JSON
{
  "hex": "#54187b",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 276.364,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3612,
    "c": 0.15703,
    "h": 307.6
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#54187B
secondary
#6BB03F
accent
#EA3E82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54187B

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

Preview Lab → · Contrast checker → · Palette generator →

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