#542997#542997

#542997 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.168 H 295.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#542997
RGBrgb(84, 41, 151)
HSLhsl(263, 57%, 38%)
HSVhsv(263, 73%, 59%)
CMYKcmyk(44.4%, 72.8%, 0%, 40.8%)
CIE-LABlab(28.66, 43.83, -52.93)
CIE-LCHlch(28.66, 68.72, 309.63°)
OKLaboklab(40.44% 0.0731 -0.1514)
OKLCHoklch(40.44% 0.168 295.8)
XYZxyz(10.0335, 5.7048, 29.8447)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542997 #6C9729
analogous
#293597 #542997 #8B2997
triadic
#542997 #975429 #299754
tetradic
#542997 #972935 #6C9729 #29978B
square
#542997 #972935 #6C9729 #29978B
split-complementary
#542997 #978B29 #359729
monochromatic
#1E0F37 #391C67 #542997 #6F36C7 #9165D5

Accessibility & contrast

On white

9.81
#542997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#542997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542997
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542997#FFFFFF#000000##FFFFFF
##5429971.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542997;
/* rgb */ color: rgb(84, 41, 151);
/* oklch */ color: oklch(40.4% 0.168 295.8);
Tailwind
colors: {
  custom: {
    50: '#8a67b6',
    500: '#542997',
    950: '#000000',
  },
}
SCSS
$custom: #542997;
$custom-light: #8a67b6;
$custom-dark: #000000;
JSON
{
  "hex": "#542997",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 263.455,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40444,
    "c": 0.16818,
    "h": 295.8
  },
  "luminance": 0.05705
}

Semantic roles & 50–950 ramp

primary
#542997
secondary
#98BB61
accent
#E147A5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542997

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

Preview Lab → · Contrast checker → · Palette generator →

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