#542CB1#542CB1

#542CB1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.195 H 289.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#542CB1
RGBrgb(84, 44, 177)
HSLhsl(258, 60%, 43%)
HSVhsv(258, 75%, 69%)
CMYKcmyk(52.5%, 75.1%, 0%, 30.6%)
CIE-LABlab(31.49, 49.52, -64.01)
CIE-LCHlch(31.49, 80.93, 307.73°)
OKLaboklab(43.15% 0.0643 -0.184)
OKLCHoklch(43.15% 0.195 289.3)
XYZxyz(12.4903, 6.8599, 42.2524)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CB1 #89B12C
analogous
#2C46B1 #542CB1 #962CB1
triadic
#542CB1 #B1542C #2CB154
tetradic
#542CB1 #B12C46 #89B12C #2CB196
square
#542CB1 #B12C46 #89B12C #2CB196
split-complementary
#542CB1 #B1962C #46B12C
monochromatic
#25144F #3D2080 #542CB1 #7249D2 #987ADE

Accessibility & contrast

On white

8.85
#542CB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#542CB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CB1
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CB1#FFFFFF#000000##FFFFFF
##542CB11.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#31516D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542cb1;
/* rgb */ color: rgb(84, 44, 177);
/* oklch */ color: oklch(43.2% 0.195 289.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ac9',
    500: '#542cb1',
    950: '#000000',
  },
}
SCSS
$custom: #542cb1;
$custom-light: #8e6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#542cb1",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 258.045,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43151,
    "c": 0.1949,
    "h": 289.3
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#542CB1
secondary
#ADC673
accent
#E344B4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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