#542DBC#542DBC

#542DBC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.206 H 287.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#542DBC
RGBrgb(84, 45, 188)
HSLhsl(256, 61%, 46%)
HSVhsv(256, 76%, 74%)
CMYKcmyk(55.3%, 76.1%, 0%, 26.3%)
CIE-LABlab(32.68, 52.12, -68.57)
CIE-LCHlch(32.68, 86.13, 307.24°)
OKLaboklab(44.3% 0.0607 -0.1973)
OKLCHoklch(44.3% 0.206 287.1)
XYZxyz(13.6689, 7.3917, 48.2737)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DBC #95BC2D
analogous
#2D4DBC #542DBC #9B2DBC
triadic
#542DBC #BC542D #2DBC54
tetradic
#542DBC #BC2D4D #95BC2D #2DBC9B
square
#542DBC #BC2D4D #95BC2D #2DBC9B
split-complementary
#542DBC #BC9B2D #4DBC2D
monochromatic
#281559 #3E218B #542DBC #7551D5 #9C82E1

Accessibility & contrast

On white

8.47
#542DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#542DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DBC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DBC#FFFFFF#000000##FFFFFF
##542DBC1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#265573
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542dbc;
/* rgb */ color: rgb(84, 45, 188);
/* oklch */ color: oklch(44.3% 0.206 287.1);
Tailwind
colors: {
  custom: {
    50: '#8f6bd1',
    500: '#542dbc',
    950: '#000000',
  },
}
SCSS
$custom: #542dbc;
$custom-light: #8f6bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#542dbc",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 188
  },
  "hsl": {
    "h": 256.364,
    "s": 61.373,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44303,
    "c": 0.20645,
    "h": 287.1
  },
  "luminance": 0.07392
}

Semantic roles & 50–950 ramp

primary
#542DBC
secondary
#B4CA7B
accent
#E443B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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