#542DA7#542DA7

#542DA7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.182 H 291.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#542DA7
RGBrgb(84, 45, 167)
HSLhsl(259, 58%, 42%)
HSVhsv(259, 73%, 65%)
CMYKcmyk(49.7%, 73.1%, 0%, 34.5%)
CIE-LABlab(30.76, 46.22, -59.20)
CIE-LCHlch(30.76, 75.11, 307.98°)
OKLaboklab(42.37% 0.0659 -0.1699)
OKLCHoklch(42.37% 0.182 291.2)
XYZxyz(11.5676, 6.5512, 37.2067)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DA7 #80A72D
analogous
#2D43A7 #542DA7 #912DA7
triadic
#542DA7 #A7542D #2DA754
tetradic
#542DA7 #A72D43 #80A72D #2DA791
square
#542DA7 #A72D43 #80A72D #2DA791
split-complementary
#542DA7 #A7912D #43A72D
monochromatic
#241347 #3C2077 #542DA7 #7044CD #9575DA

Accessibility & contrast

On white

9.09
#542DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#542DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DA7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DA7#FFFFFF#000000##FFFFFF
##542DA71.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#384D67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542da7;
/* rgb */ color: rgb(84, 45, 167);
/* oklch */ color: oklch(42.4% 0.182 291.2);
Tailwind
colors: {
  custom: {
    50: '#8c6ac2',
    500: '#542da7',
    950: '#000000',
  },
}
SCSS
$custom: #542da7;
$custom-light: #8c6ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#542da7",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 259.18,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42365,
    "c": 0.18221,
    "h": 291.2
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#542DA7
secondary
#A7C16E
accent
#E147B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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