#54279C#54279C

#54279C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.176 H 294.8°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#54279C
RGBrgb(84, 39, 156)
HSLhsl(263, 60%, 38%)
HSVhsv(263, 75%, 61%)
CMYKcmyk(46.2%, 75%, 0%, 38.8%)
CIE-LABlab(28.74, 46.17, -55.85)
CIE-LCHlch(28.74, 72.46, 309.58°)
OKLaboklab(40.64% 0.0739 -0.16)
OKLCHoklch(40.64% 0.176 294.8)
XYZxyz(10.3808, 5.7359, 32.0062)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54279C #6F9C27
analogous
#27349C #54279C #8E279C
triadic
#54279C #9C5427 #279C54
tetradic
#54279C #9C2734 #6F9C27 #279C8E
square
#54279C #9C2734 #6F9C27 #279C8E
split-complementary
#54279C #9C8E27 #349C27
monochromatic
#1F0F3A #3A1B6B #54279C #6F34CC #9165D8

Accessibility & contrast

On white

9.78
#54279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#54279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54279C
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54279C#FFFFFF#000000##FFFFFF
##54279C1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#3F465F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54279c;
/* rgb */ color: rgb(84, 39, 156);
/* oklch */ color: oklch(40.6% 0.176 294.8);
Tailwind
colors: {
  custom: {
    50: '#8b66ba',
    500: '#54279c',
    950: '#000000',
  },
}
SCSS
$custom: #54279c;
$custom-light: #8b66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54279c",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 263.077,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40635,
    "c": 0.17626,
    "h": 294.8
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#54279C
secondary
#9ABE61
accent
#E345A6
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54279C

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

Preview Lab → · Contrast checker → · Palette generator →

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