#542EBE#542EBE

#542EBE is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.208 H 286.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#542EBE
RGBrgb(84, 46, 190)
HSLhsl(256, 61%, 46%)
HSVhsv(256, 76%, 75%)
CMYKcmyk(55.8%, 75.8%, 0%, 25.5%)
CIE-LABlab(33.04, 52.20, -69.16)
CIE-LCHlch(33.04, 86.65, 307.05°)
OKLaboklab(44.61% 0.0594 -0.1991)
OKLCHoklch(44.61% 0.208 286.6)
XYZxyz(13.9246, 7.5557, 49.4299)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EBE #98BE2E
analogous
#2E50BE #542EBE #9C2EBE
triadic
#542EBE #BE542E #2EBE54
tetradic
#542EBE #BE2E50 #98BE2E #2EBE9C
square
#542EBE #BE2E50 #98BE2E #2EBE9C
split-complementary
#542EBE #BE9C2E #50BE2E
monochromatic
#28165B #3E228D #542EBE #7654D6 #9D85E1

Accessibility & contrast

On white

8.36
#542EBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#542EBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EBE
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EBE#FFFFFF#000000##FFFFFF
##542EBE1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C2
Deuteranopia (green-blind)
#004ABB
Tritanopia (blue-blind)
#235774
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542ebe;
/* rgb */ color: rgb(84, 46, 190);
/* oklch */ color: oklch(44.6% 0.208 286.6);
Tailwind
colors: {
  custom: {
    50: '#906bd3',
    500: '#542ebe',
    950: '#000000',
  },
}
SCSS
$custom: #542ebe;
$custom-light: #906bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#542ebe",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 190
  },
  "hsl": {
    "h": 255.833,
    "s": 61.017,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44611,
    "c": 0.20775,
    "h": 286.6
  },
  "luminance": 0.07557
}

Semantic roles & 50–950 ramp

primary
#542EBE
secondary
#B6CB7D
accent
#E444BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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