#54279A#54279A

#54279A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.174 H 295.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#54279A
RGBrgb(84, 39, 154)
HSLhsl(263, 60%, 38%)
HSVhsv(263, 75%, 60%)
CMYKcmyk(45.5%, 74.7%, 0%, 39.6%)
CIE-LABlab(28.56, 45.63, -54.92)
CIE-LCHlch(28.56, 71.40, 309.73°)
OKLaboklab(40.46% 0.0744 -0.1573)
OKLCHoklch(40.46% 0.174 295.3)
XYZxyz(10.2128, 5.6687, 31.1217)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54279A #6D9A27
analogous
#27349A #54279A #8D279A
triadic
#54279A #9A5427 #279A54
tetradic
#54279A #9A2734 #6D9A27 #279A8D
square
#54279A #9A2734 #6D9A27 #279A8D
split-complementary
#54279A #9A8D27 #349A27
monochromatic
#1F0E38 #391B69 #54279A #6F33CB #9164D8

Accessibility & contrast

On white

9.84
#54279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#54279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54279A
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54279A#FFFFFF#000000##FFFFFF
##54279A1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#40455E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #54279a;
/* rgb */ color: rgb(84, 39, 154);
/* oklch */ color: oklch(40.5% 0.174 295.3);
Tailwind
colors: {
  custom: {
    50: '#8b66b9',
    500: '#54279a',
    950: '#000000',
  },
}
SCSS
$custom: #54279a;
$custom-light: #8b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54279a",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 263.478,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.17397,
    "h": 295.3
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#54279A
secondary
#99BD5F
accent
#E345A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #54279A

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

Preview Lab → · Contrast checker → · Palette generator →

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