#542284#542284

#542284 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.155 H 302.9°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#542284
RGBrgb(84, 34, 132)
HSLhsl(271, 59%, 33%)
HSVhsv(271, 74%, 52%)
CMYKcmyk(36.4%, 74.2%, 0%, 48.2%)
CIE-LABlab(25.85, 42.27, -45.72)
CIE-LCHlch(25.85, 62.27, 312.75°)
OKLaboklab(37.96% 0.0841 -0.1302)
OKLCHoklch(37.96% 0.155 302.9)
XYZxyz(8.3921, 4.6948, 22.2894)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542284 #528422
analogous
#232284 #542284 #842283
triadic
#542284 #845422 #228454
tetradic
#542284 #842322 #528422 #228384
square
#542284 #842322 #528422 #228384
split-complementary
#542284 #838422 #228423
monochromatic
#160923 #351553 #542284 #732FB5 #924FD2

Accessibility & contrast

On white

10.83
#542284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#542284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542284
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542284#FFFFFF#000000##FFFFFF
##5422841.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#4A3A51
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #542284;
/* rgb */ color: rgb(84, 34, 132);
/* oklch */ color: oklch(38.0% 0.155 302.9);
Tailwind
colors: {
  custom: {
    50: '#8962a8',
    500: '#542284',
    950: '#000000',
  },
}
SCSS
$custom: #542284;
$custom-light: #8962a8;
$custom-dark: #000000;
JSON
{
  "hex": "#542284",
  "rgb": {
    "r": 84,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 270.612,
    "s": 59.036,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.15504,
    "h": 302.9
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#542284
secondary
#80B54D
accent
#E24692
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #542284

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

Preview Lab → · Contrast checker → · Palette generator →

#542284 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva