#542897#542897

#542897 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.169 H 295.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#542897
RGBrgb(84, 40, 151)
HSLhsl(264, 58%, 37%)
HSVhsv(264, 74%, 59%)
CMYKcmyk(44.4%, 73.5%, 0%, 40.8%)
CIE-LABlab(28.48, 44.33, -53.22)
CIE-LCHlch(28.48, 69.26, 309.79°)
OKLaboklab(40.32% 0.0741 -0.1523)
OKLCHoklch(40.32% 0.169 295.9)
XYZxyz(9.9994, 5.6365, 29.8333)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542897 #6B9728
analogous
#283397 #542897 #8C2897
triadic
#542897 #975428 #289754
tetradic
#542897 #972833 #6B9728 #28978C
square
#542897 #972833 #6B9728 #28978C
split-complementary
#542897 #978C28 #339728
monochromatic
#1E0E36 #391B67 #542897 #6F35C7 #9164D6

Accessibility & contrast

On white

9.87
#542897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#542897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542897
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542897#FFFFFF#000000##FFFFFF
##5428971.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542897;
/* rgb */ color: rgb(84, 40, 151);
/* oklch */ color: oklch(40.3% 0.169 295.9);
Tailwind
colors: {
  custom: {
    50: '#8b66b6',
    500: '#542897',
    950: '#000000',
  },
}
SCSS
$custom: #542897;
$custom-light: #8b66b6;
$custom-dark: #000000;
JSON
{
  "hex": "#542897",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 263.784,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40317,
    "c": 0.16937,
    "h": 295.9
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#542897
secondary
#97BC5F
accent
#E146A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542897

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

Preview Lab → · Contrast checker → · Palette generator →

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