#542797#542797

#542797 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.171 H 296.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#542797
RGBrgb(84, 39, 151)
HSLhsl(264, 59%, 37%)
HSVhsv(264, 74%, 59%)
CMYKcmyk(44.4%, 74.2%, 0%, 40.8%)
CIE-LABlab(28.30, 44.82, -53.50)
CIE-LCHlch(28.30, 69.80, 309.96°)
OKLaboklab(40.19% 0.0751 -0.1531)
OKLCHoklch(40.19% 0.171 296.1)
XYZxyz(9.9661, 5.5700, 29.8222)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542797 #6A9727
analogous
#273297 #542797 #8C2797
triadic
#542797 #975427 #279754
tetradic
#542797 #972732 #6A9727 #27978C
square
#542797 #972732 #6A9727 #27978C
split-complementary
#542797 #978C27 #329727
monochromatic
#1E0E36 #391A66 #542797 #6F34C8 #9162D6

Accessibility & contrast

On white

9.93
#542797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#542797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542797
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542797#FFFFFF#000000##FFFFFF
##5427971.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#42445D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542797;
/* rgb */ color: rgb(84, 39, 151);
/* oklch */ color: oklch(40.2% 0.171 296.1);
Tailwind
colors: {
  custom: {
    50: '#8b66b6',
    500: '#542797',
    950: '#000000',
  },
}
SCSS
$custom: #542797;
$custom-light: #8b66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#542797",
  "rgb": {
    "r": 84,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 264.107,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40193,
    "c": 0.17054,
    "h": 296.1
  },
  "luminance": 0.0557
}

Semantic roles & 50–950 ramp

primary
#542797
secondary
#96BC5E
accent
#E246A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #542797

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

Preview Lab → · Contrast checker → · Palette generator →

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