#542E90#542E90

#542E90 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.153 H 296.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#542E90
RGBrgb(84, 46, 144)
HSLhsl(263, 52%, 37%)
HSVhsv(263, 68%, 56%)
CMYKcmyk(41.7%, 68.1%, 0%, 43.5%)
CIE-LABlab(29.04, 39.26, -48.00)
CIE-LCHlch(29.04, 62.01, 309.28°)
OKLaboklab(40.54% 0.0691 -0.137)
OKLCHoklch(40.54% 0.153 296.8)
XYZxyz(9.6659, 5.8522, 27.0005)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E90 #6A902E
analogous
#2E3990 #542E90 #852E90
triadic
#542E90 #90542E #2E9054
tetradic
#542E90 #902E39 #6A902E #2E9085
square
#542E90 #902E39 #6A902E #2E9085
split-complementary
#542E90 #90852E #39902E
monochromatic
#1E1033 #391F62 #542E90 #6F3DBE #9169CF

Accessibility & contrast

On white

9.68
#542E90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#542E90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E90
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E90#FFFFFF#000000##FFFFFF
##542E901.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#00438E
Tritanopia (blue-blind)
#45455B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542e90;
/* rgb */ color: rgb(84, 46, 144);
/* oklch */ color: oklch(40.5% 0.153 296.8);
Tailwind
colors: {
  custom: {
    50: '#8969b1',
    500: '#542e90',
    950: '#000000',
  },
}
SCSS
$custom: #542e90;
$custom-light: #8969b1;
$custom-dark: #000000;
JSON
{
  "hex": "#542e90",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 144
  },
  "hsl": {
    "h": 263.265,
    "s": 51.579,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40538,
    "c": 0.15343,
    "h": 296.8
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#542E90
secondary
#96B664
accent
#DB4DA4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E90

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

Preview Lab → · Contrast checker → · Palette generator →

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