#54278F#54278F

#54278F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.161 H 298.4°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#54278F
RGBrgb(84, 39, 143)
HSLhsl(266, 57%, 36%)
HSVhsv(266, 73%, 56%)
CMYKcmyk(41.3%, 72.7%, 0%, 43.9%)
CIE-LABlab(27.62, 42.68, -49.68)
CIE-LCHlch(27.62, 65.50, 310.67°)
OKLaboklab(39.5% 0.0768 -0.1419)
OKLCHoklch(39.5% 0.161 298.4)
XYZxyz(9.3383, 5.3189, 26.5159)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54278F #628F27
analogous
#272E8F #54278F #88278F
triadic
#54278F #8F5427 #278F54
tetradic
#54278F #8F272E #628F27 #278F88
square
#54278F #8F272E #628F27 #278F88
split-complementary
#54278F #8F8827 #2E8F27
monochromatic
#1C0D2F #381A5F #54278F #7034BF #905DD3

Accessibility & contrast

On white

10.18
#54278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#54278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54278F
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54278F#FFFFFF#000000##FFFFFF
##54278F1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#464158
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54278f;
/* rgb */ color: rgb(84, 39, 143);
/* oklch */ color: oklch(39.5% 0.161 298.4);
Tailwind
colors: {
  custom: {
    50: '#8a65b1',
    500: '#54278f',
    950: '#000000',
  },
}
SCSS
$custom: #54278f;
$custom-light: #8a65b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54278f",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 265.962,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.16134,
    "h": 298.4
  },
  "luminance": 0.05319
}

Semantic roles & 50–950 ramp

primary
#54278F
secondary
#8FB85A
accent
#E0479E
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54278F

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

Preview Lab → · Contrast checker → · Palette generator →

#54278F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva