#54279F#54279F

#54279F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.180 H 294.0°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#54279F
RGBrgb(84, 39, 159)
HSLhsl(263, 61%, 39%)
HSVhsv(263, 75%, 62%)
CMYKcmyk(47.2%, 75.5%, 0%, 37.6%)
CIE-LABlab(29.00, 46.99, -57.24)
CIE-LCHlch(29.00, 74.06, 309.38°)
OKLaboklab(40.9% 0.0731 -0.1641)
OKLCHoklch(40.9% 0.18 294)
XYZxyz(10.6380, 5.8387, 33.3607)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54279F #729F27
analogous
#27369F #54279F #90279F
triadic
#54279F #9F5427 #279F54
tetradic
#54279F #9F2736 #729F27 #279F90
square
#54279F #9F2736 #729F27 #279F90
split-complementary
#54279F #9F9027 #369F27
monochromatic
#200F3D #3A1B6E #54279F #6F36CE #9267DA

Accessibility & contrast

On white

9.69
#54279F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#54279F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54279F
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54279F#FFFFFF#000000##FFFFFF
##54279F1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#3E4761
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54279f;
/* rgb */ color: rgb(84, 39, 159);
/* oklch */ color: oklch(40.9% 0.180 294.0);
Tailwind
colors: {
  custom: {
    50: '#8c66bc',
    500: '#54279f',
    950: '#000000',
  },
}
SCSS
$custom: #54279f;
$custom-light: #8c66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54279f",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 159
  },
  "hsl": {
    "h": 262.5,
    "s": 60.606,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40904,
    "c": 0.17966,
    "h": 294
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

primary
#54279F
secondary
#9DC062
accent
#E444A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54279F

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

Preview Lab → · Contrast checker → · Palette generator →

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