#54287D#54287D

#54287D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.139 H 304.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#54287D
RGBrgb(84, 40, 125)
HSLhsl(271, 52%, 32%)
HSVhsv(271, 68%, 49%)
CMYKcmyk(32.8%, 68%, 0%, 51%)
CIE-LABlab(26.40, 37.42, -40.42)
CIE-LCHlch(26.40, 55.08, 312.79°)
OKLaboklab(38.18% 0.0784 -0.1147)
OKLCHoklch(38.18% 0.139 304.3)
XYZxyz(8.1158, 4.8831, 19.9130)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54287D #517D28
analogous
#2A287D #54287D #7D287B
triadic
#54287D #7D5428 #287D54
tetradic
#54287D #7D2A28 #517D28 #287B7D
square
#54287D #7D2A28 #517D28 #287B7D
split-complementary
#54287D #7B7D28 #287D2A
monochromatic
#160A20 #35194F #54287D #7337AB #9256C9

Accessibility & contrast

On white

10.62
#54287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54287D
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54287D#FFFFFF#000000##FFFFFF
##54287D1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#0D3E7B
Tritanopia (blue-blind)
#4C3B4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54287d;
/* rgb */ color: rgb(84, 40, 125);
/* oklch */ color: oklch(38.2% 0.139 304.3);
Tailwind
colors: {
  custom: {
    50: '#8865a3',
    500: '#54287d',
    950: '#000000',
  },
}
SCSS
$custom: #54287d;
$custom-light: #8865a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54287d",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 271.059,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38183,
    "c": 0.13891,
    "h": 304.3
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#54287D
secondary
#7FAE53
accent
#DB4D91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54287D

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

Preview Lab → · Contrast checker → · Palette generator →

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