#542E97#542E97

#542E97 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.162 H 294.8°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#542E97
RGBrgb(84, 46, 151)
HSLhsl(262, 53%, 39%)
HSVhsv(262, 70%, 59%)
CMYKcmyk(44.4%, 69.5%, 0%, 40.8%)
CIE-LABlab(29.60, 41.21, -51.39)
CIE-LCHlch(29.60, 65.87, 308.72°)
OKLaboklab(41.11% 0.0681 -0.147)
OKLCHoklch(41.11% 0.162 294.8)
XYZxyz(10.2176, 6.0729, 29.9060)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E97 #71972E
analogous
#2E3D97 #542E97 #882E97
triadic
#542E97 #97542E #2E9754
tetradic
#542E97 #972E3D #71972E #2E9788
square
#542E97 #972E3D #71972E #2E9788
split-complementary
#542E97 #97882E #3D972E
monochromatic
#201139 #3A2068 #542E97 #6F3EC4 #926DD2

Accessibility & contrast

On white

9.48
#542E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#542E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E97
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E97#FFFFFF#000000##FFFFFF
##542E971.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#42485F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542e97;
/* rgb */ color: rgb(84, 46, 151);
/* oklch */ color: oklch(41.1% 0.162 294.8);
Tailwind
colors: {
  custom: {
    50: '#8a6ab6',
    500: '#542e97',
    950: '#000000',
  },
}
SCSS
$custom: #542e97;
$custom-light: #8a6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#542e97",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 261.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41114,
    "c": 0.16195,
    "h": 294.8
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#542E97
secondary
#9CBA67
accent
#DD4BA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E97

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

Preview Lab → · Contrast checker → · Palette generator →

#542E97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva