#542E94#542E94

#542E94 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.158 H 295.6°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#542E94
RGBrgb(84, 46, 148)
HSLhsl(262, 53%, 38%)
HSVhsv(262, 69%, 58%)
CMYKcmyk(43.2%, 68.9%, 0%, 42%)
CIE-LABlab(29.35, 40.37, -49.95)
CIE-LCHlch(29.35, 64.22, 308.95°)
OKLaboklab(40.87% 0.0685 -0.1427)
OKLCHoklch(40.87% 0.158 295.6)
XYZxyz(9.9770, 5.9767, 28.6392)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E94 #6E942E
analogous
#2E3B94 #542E94 #872E94
triadic
#542E94 #94542E #2E9454
tetradic
#542E94 #942E3B #6E942E #2E9487
square
#542E94 #942E3B #6E942E #2E9487
split-complementary
#542E94 #94872E #3B942E
monochromatic
#1F1137 #3A1F65 #542E94 #6F3DC3 #916BD1

Accessibility & contrast

On white

9.57
#542E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#542E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E94
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E94#FFFFFF#000000##FFFFFF
##542E941.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#004492
Tritanopia (blue-blind)
#43475D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #542e94;
/* rgb */ color: rgb(84, 46, 148);
/* oklch */ color: oklch(40.9% 0.158 295.6);
Tailwind
colors: {
  custom: {
    50: '#8a69b4',
    500: '#542e94',
    950: '#000000',
  },
}
SCSS
$custom: #542e94;
$custom-light: #8a69b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542e94",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 262.353,
    "s": 52.577,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40865,
    "c": 0.15831,
    "h": 295.6
  },
  "luminance": 0.05977
}

Semantic roles & 50–950 ramp

primary
#542E94
secondary
#99B866
accent
#DC4CA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E94

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

Preview Lab → · Contrast checker → · Palette generator →

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