#542DAF#542DAF

#542DAF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.192 H 289.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#542DAF
RGBrgb(84, 45, 175)
HSLhsl(258, 59%, 43%)
HSVhsv(258, 74%, 69%)
CMYKcmyk(52%, 74.3%, 0%, 31.4%)
CIE-LABlab(31.48, 48.47, -62.83)
CIE-LCHlch(31.48, 79.35, 307.65°)
OKLaboklab(43.09% 0.064 -0.1805)
OKLCHoklch(43.09% 0.192 289.5)
XYZxyz(12.3302, 6.8562, 41.2228)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DAF #88AF2D
analogous
#2D47AF #542DAF #952DAF
triadic
#542DAF #AF542D #2DAF54
tetradic
#542DAF #AF2D47 #88AF2D #2DAF95
square
#542DAF #AF2D47 #88AF2D #2DAF95
split-complementary
#542DAF #AF952D #47AF2D
monochromatic
#25144E #3D207E #542DAF #7249D0 #977ADD

Accessibility & contrast

On white

8.86
#542DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#542DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DAF
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DAF#FFFFFF#000000##FFFFFF
##542DAF1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#33506C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542daf;
/* rgb */ color: rgb(84, 45, 175);
/* oklch */ color: oklch(43.1% 0.192 289.5);
Tailwind
colors: {
  custom: {
    50: '#8d6ac8',
    500: '#542daf',
    950: '#000000',
  },
}
SCSS
$custom: #542daf;
$custom-light: #8d6ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#542daf",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 258,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43089,
    "c": 0.19154,
    "h": 289.5
  },
  "luminance": 0.06857
}

Semantic roles & 50–950 ramp

primary
#542DAF
secondary
#ACC573
accent
#E246B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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