#542FAC#542FAC

#542FAC is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.186 H 289.8°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#542FAC
RGBrgb(84, 47, 172)
HSLhsl(258, 57%, 43%)
HSVhsv(258, 73%, 67%)
CMYKcmyk(51.2%, 72.7%, 0%, 32.5%)
CIE-LABlab(31.57, 46.61, -60.88)
CIE-LCHlch(31.57, 76.67, 307.43°)
OKLaboklab(43.07% 0.063 -0.1748)
OKLCHoklch(43.07% 0.186 289.8)
XYZxyz(12.1169, 6.8959, 39.7143)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FAC #87AC2F
analogous
#2F48AC #542FAC #922FAC
triadic
#542FAC #AC542F #2FAC54
tetradic
#542FAC #AC2F48 #87AC2F #2FAC92
square
#542FAC #AC2F48 #87AC2F #2FAC92
split-complementary
#542FAC #AC922F #48AC2F
monochromatic
#25154C #3D227C #542FAC #714BCE #977BDB

Accessibility & contrast

On white

8.83
#542FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#542FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FAC
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FAC#FFFFFF#000000##FFFFFF
##542FAC1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0047AA
Tritanopia (blue-blind)
#35506A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542fac;
/* rgb */ color: rgb(84, 47, 172);
/* oklch */ color: oklch(43.1% 0.186 289.8);
Tailwind
colors: {
  custom: {
    50: '#8d6bc6',
    500: '#542fac',
    950: '#000000',
  },
}
SCSS
$custom: #542fac;
$custom-light: #8d6bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#542fac",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 257.76,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43072,
    "c": 0.18584,
    "h": 289.8
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#542FAC
secondary
#ACC374
accent
#E047B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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