#54187D#54187D

#54187D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.159 H 306.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#54187D
RGBrgb(84, 24, 125)
HSLhsl(276, 68%, 29%)
HSVhsv(276, 81%, 49%)
CMYKcmyk(32.8%, 80.8%, 0%, 51%)
CIE-LABlab(23.73, 44.93, -44.74)
CIE-LCHlch(23.73, 63.41, 315.12°)
OKLaboklab(36.29% 0.0954 -0.1273)
OKLCHoklch(36.29% 0.159 306.9)
XYZxyz(7.6837, 4.0188, 19.7690)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54187D #417D18
analogous
#22187D #54187D #7D1874
triadic
#54187D #7D5418 #187D54
tetradic
#54187D #7D2218 #417D18 #18747D
square
#54187D #7D2218 #417D18 #18747D
split-complementary
#54187D #747D18 #187D22
monochromatic
#11051A #310E4A #54187D #7722B0 #9737D9

Accessibility & contrast

On white

11.64
#54187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54187D
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54187D#FFFFFF#000000##FFFFFF
##54187D1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#4D324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54187d;
/* rgb */ color: rgb(84, 24, 125);
/* oklch */ color: oklch(36.3% 0.159 306.9);
Tailwind
colors: {
  custom: {
    50: '#895da3',
    500: '#54187d',
    950: '#000000',
  },
}
SCSS
$custom: #54187d;
$custom-light: #895da3;
$custom-dark: #000000;
JSON
{
  "hex": "#54187d",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 275.644,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3629,
    "c": 0.15907,
    "h": 306.9
  },
  "luminance": 0.04019
}

Semantic roles & 50–950 ramp

primary
#54187D
secondary
#6EB23F
accent
#EB3D84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54187D

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

Preview Lab → · Contrast checker → · Palette generator →

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