#542DA5#542DA5

#542DA5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.180 H 291.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#542DA5
RGBrgb(84, 45, 165)
HSLhsl(260, 57%, 41%)
HSVhsv(260, 73%, 65%)
CMYKcmyk(49.1%, 72.7%, 0%, 35.3%)
CIE-LABlab(30.59, 45.66, -58.28)
CIE-LCHlch(30.59, 74.04, 308.08°)
OKLaboklab(42.19% 0.0664 -0.1672)
OKLCHoklch(42.19% 0.18 291.6)
XYZxyz(11.3842, 6.4778, 36.2405)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DA5 #7EA52D
analogous
#2D42A5 #542DA5 #902DA5
triadic
#542DA5 #A5542D #2DA554
tetradic
#542DA5 #A52D42 #7EA52D #2DA590
square
#542DA5 #A52D42 #7EA52D #2DA590
split-complementary
#542DA5 #A5902D #42A52D
monochromatic
#231345 #3C2075 #542DA5 #7043CC #9473D9

Accessibility & contrast

On white

9.15
#542DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#542DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DA5
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DA5#FFFFFF#000000##FFFFFF
##542DA51.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#3A4C66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542da5;
/* rgb */ color: rgb(84, 45, 165);
/* oklch */ color: oklch(42.2% 0.180 291.6);
Tailwind
colors: {
  custom: {
    50: '#8c6ac1',
    500: '#542da5',
    950: '#000000',
  },
}
SCSS
$custom: #542da5;
$custom-light: #8c6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#542da5",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 259.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42187,
    "c": 0.17987,
    "h": 291.6
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#542DA5
secondary
#A5C16D
accent
#E047AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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