#542FA7#542FA7

#542FA7 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.180 H 290.9°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#542FA7
RGBrgb(84, 47, 167)
HSLhsl(259, 56%, 42%)
HSVhsv(259, 72%, 65%)
CMYKcmyk(49.7%, 71.9%, 0%, 34.5%)
CIE-LABlab(31.13, 45.19, -58.60)
CIE-LCHlch(31.13, 74.00, 307.64°)
OKLaboklab(42.63% 0.0641 -0.1681)
OKLCHoklch(42.63% 0.18 290.9)
XYZxyz(11.6457, 6.7074, 37.2328)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FA7 #82A72F
analogous
#2F46A7 #542FA7 #902FA7
triadic
#542FA7 #A7542F #2FA754
tetradic
#542FA7 #A72F46 #82A72F #2FA790
square
#542FA7 #A72F46 #82A72F #2FA790
split-complementary
#542FA7 #A7902F #46A72F
monochromatic
#241447 #3C2277 #542FA7 #7048CB #9678D9

Accessibility & contrast

On white

8.97
#542FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#542FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FA7
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FA7#FFFFFF#000000##FFFFFF
##542FA71.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#384E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542fa7;
/* rgb */ color: rgb(84, 47, 167);
/* oklch */ color: oklch(42.6% 0.180 290.9);
Tailwind
colors: {
  custom: {
    50: '#8c6bc2',
    500: '#542fa7',
    950: '#000000',
  },
}
SCSS
$custom: #542fa7;
$custom-light: #8c6bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#542fa7",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 258.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42626,
    "c": 0.17992,
    "h": 290.9
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#542FA7
secondary
#A8C171
accent
#DF48B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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