#542CB3#542CB3

#542CB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.197 H 288.9°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#542CB3
RGBrgb(84, 44, 179)
HSLhsl(258, 61%, 44%)
HSVhsv(258, 75%, 70%)
CMYKcmyk(53.1%, 75.4%, 0%, 29.8%)
CIE-LABlab(31.67, 50.08, -64.90)
CIE-LCHlch(31.67, 81.97, 307.66°)
OKLaboklab(43.34% 0.0638 -0.1866)
OKLCHoklch(43.34% 0.197 288.9)
XYZxyz(12.6911, 6.9403, 43.3100)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CB3 #8BB32C
analogous
#2C47B3 #542CB3 #972CB3
triadic
#542CB3 #B3542C #2CB354
tetradic
#542CB3 #B32C47 #8BB32C #2CB397
square
#542CB3 #B32C47 #8BB32C #2CB397
split-complementary
#542CB3 #B3972C #47B32C
monochromatic
#261451 #3D2082 #542CB3 #724AD2 #987BDF

Accessibility & contrast

On white

8.79
#542CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#542CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CB3
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CB3#FFFFFF#000000##FFFFFF
##542CB31.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2F516E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542cb3;
/* rgb */ color: rgb(84, 44, 179);
/* oklch */ color: oklch(43.3% 0.197 288.9);
Tailwind
colors: {
  custom: {
    50: '#8e6acb',
    500: '#542cb3',
    950: '#000000',
  },
}
SCSS
$custom: #542cb3;
$custom-light: #8e6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#542cb3",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 257.778,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.19719,
    "h": 288.9
  },
  "luminance": 0.06941
}

Semantic roles & 50–950 ramp

primary
#542CB3
secondary
#AEC774
accent
#E444B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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