#542BB2#542BB2

#542BB2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.1% C 0.197 H 289.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#542BB2
RGBrgb(84, 43, 178)
HSLhsl(258, 61%, 43%)
HSVhsv(258, 76%, 70%)
CMYKcmyk(52.8%, 75.8%, 0%, 30.2%)
CIE-LABlab(31.41, 50.29, -64.73)
CIE-LCHlch(31.41, 81.97, 307.84°)
OKLaboklab(43.13% 0.0649 -0.1861)
OKLCHoklch(43.13% 0.197 289.2)
XYZxyz(12.5536, 6.8263, 42.7670)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB2 #89B22B
analogous
#2B45B2 #542BB2 #972BB2
triadic
#542BB2 #B2542B #2BB254
tetradic
#542BB2 #B22B45 #89B22B #2BB297
square
#542BB2 #B22B45 #89B22B #2BB297
split-complementary
#542BB2 #B2972B #45B22B
monochromatic
#25134F #3D1F81 #542BB2 #7248D3 #9879DF

Accessibility & contrast

On white

8.88
#542BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542BB2
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB2#FFFFFF#000000##FFFFFF
##542BB21.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542bb2;
/* rgb */ color: rgb(84, 43, 178);
/* oklch */ color: oklch(43.1% 0.197 289.2);
Tailwind
colors: {
  custom: {
    50: '#8e69ca',
    500: '#542bb2',
    950: '#000000',
  },
}
SCSS
$custom: #542bb2;
$custom-light: #8e69ca;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb2",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 258.222,
    "s": 61.086,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43125,
    "c": 0.19706,
    "h": 289.2
  },
  "luminance": 0.06827
}

Semantic roles & 50–950 ramp

primary
#542BB2
secondary
#ADC772
accent
#E444B3
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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