#542E9F#542E9F

#542E9F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.172 H 292.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#542E9F
RGBrgb(84, 46, 159)
HSLhsl(260, 55%, 40%)
HSVhsv(260, 71%, 62%)
CMYKcmyk(47.2%, 71.1%, 0%, 37.6%)
CIE-LABlab(30.26, 43.45, -55.19)
CIE-LCHlch(30.26, 70.24, 308.22°)
OKLaboklab(41.79% 0.0666 -0.1581)
OKLCHoklch(41.79% 0.172 292.9)
XYZxyz(10.8894, 6.3417, 33.4445)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E9F #799F2E
analogous
#2E409F #542E9F #8C2E9F
triadic
#542E9F #9F542E #2E9F54
tetradic
#542E9F #9F2E40 #799F2E #2E9F8C
square
#542E9F #9F2E40 #799F2E #2E9F8C
split-complementary
#542E9F #9F8C2E #409F2E
monochromatic
#221340 #3B2070 #542E9F #6F42C8 #9371D6

Accessibility & contrast

On white

9.26
#542E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#542E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E9F
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E9F#FFFFFF#000000##FFFFFF
##542E9F1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#3D4B63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542e9f;
/* rgb */ color: rgb(84, 46, 159);
/* oklch */ color: oklch(41.8% 0.172 292.9);
Tailwind
colors: {
  custom: {
    50: '#8b6abc',
    500: '#542e9f',
    950: '#000000',
  },
}
SCSS
$custom: #542e9f;
$custom-light: #8b6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#542e9f",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 260.177,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41794,
    "c": 0.17158,
    "h": 292.9
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#542E9F
secondary
#A2BE6B
accent
#DE49AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #542E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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