#542F97#542F97

#542F97 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.161 H 294.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#542F97
RGBrgb(84, 47, 151)
HSLhsl(261, 53%, 39%)
HSVhsv(261, 69%, 59%)
CMYKcmyk(44.4%, 68.9%, 0%, 40.8%)
CIE-LABlab(29.79, 40.67, -51.07)
CIE-LCHlch(29.79, 65.28, 308.53°)
OKLaboklab(41.26% 0.067 -0.146)
OKLCHoklch(41.26% 0.161 294.6)
XYZxyz(10.2571, 6.1520, 29.9192)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542F97 #72972F
analogous
#2F3E97 #542F97 #882F97
triadic
#542F97 #97542F #2F9754
tetradic
#542F97 #972F3E #72972F #2F9788
square
#542F97 #972F3E #72972F #2F9788
split-complementary
#542F97 #97882F #3E972F
monochromatic
#20123A #3A2068 #542F97 #6F40C3 #926ED2

Accessibility & contrast

On white

9.42
#542F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#542F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542F97
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542F97#FFFFFF#000000##FFFFFF
##542F971.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.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: #542f97;
/* rgb */ color: rgb(84, 47, 151);
/* oklch */ color: oklch(41.3% 0.161 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ab6',
    500: '#542f97',
    950: '#000000',
  },
}
SCSS
$custom: #542f97;
$custom-light: #8a6ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#542f97",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 261.346,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41255,
    "c": 0.16065,
    "h": 294.6
  },
  "luminance": 0.06152
}

Semantic roles & 50–950 ramp

primary
#542F97
secondary
#9DB968
accent
#DC4CA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #542F97

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

Preview Lab → · Contrast checker → · Palette generator →

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