#542DBE#542DBE

#542DBE is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.209 H 286.7°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#542DBE
RGBrgb(84, 45, 190)
HSLhsl(256, 62%, 46%)
HSVhsv(256, 76%, 75%)
CMYKcmyk(55.8%, 76.3%, 0%, 25.5%)
CIE-LABlab(32.87, 52.68, -69.44)
CIE-LCHlch(32.87, 87.16, 307.19°)
OKLaboklab(44.49% 0.0601 -0.1999)
OKLCHoklch(44.49% 0.209 286.7)
XYZxyz(13.8860, 7.4785, 49.4170)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DBE #97BE2D
analogous
#2D4EBE #542DBE #9C2DBE
triadic
#542DBE #BE542D #2DBE54
tetradic
#542DBE #BE2D4E #97BE2D #2DBE9C
square
#542DBE #BE2D4E #97BE2D #2DBE9C
split-complementary
#542DBE #BE9C2D #4EBE2D
monochromatic
#28165B #3E218D #542DBE #7652D6 #9D84E2

Accessibility & contrast

On white

8.41
#542DBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#542DBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DBE
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DBE#FFFFFF#000000##FFFFFF
##542DBE1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C2
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#245674
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542dbe;
/* rgb */ color: rgb(84, 45, 190);
/* oklch */ color: oklch(44.5% 0.209 286.7);
Tailwind
colors: {
  custom: {
    50: '#906bd3',
    500: '#542dbe',
    950: '#000000',
  },
}
SCSS
$custom: #542dbe;
$custom-light: #906bd3;
$custom-dark: #000000;
JSON
{
  "hex": "#542dbe",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 190
  },
  "hsl": {
    "h": 256.138,
    "s": 61.702,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44494,
    "c": 0.20872,
    "h": 286.7
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#542DBE
secondary
#B6CB7C
accent
#E543B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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