#542CAF#542CAF

#542CAF is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.193 H 289.7°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#542CAF
RGBrgb(84, 44, 175)
HSLhsl(258, 60%, 43%)
HSVhsv(258, 75%, 69%)
CMYKcmyk(52%, 74.9%, 0%, 31.4%)
CIE-LABlab(31.30, 48.96, -63.11)
CIE-LCHlch(31.30, 79.88, 307.80°)
OKLaboklab(42.97% 0.0649 -0.1813)
OKLCHoklch(42.97% 0.193 289.7)
XYZxyz(12.2925, 6.7808, 41.2102)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CAF #87AF2C
analogous
#2C45AF #542CAF #962CAF
triadic
#542CAF #AF542C #2CAF54
tetradic
#542CAF #AF2C45 #87AF2C #2CAF96
square
#542CAF #AF2C45 #87AF2C #2CAF96
split-complementary
#542CAF #AF962C #45AF2C
monochromatic
#25134D #3D207E #542CAF #7147D1 #9778DD

Accessibility & contrast

On white

8.91
#542CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#542CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CAF
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CAF#FFFFFF#000000##FFFFFF
##542CAF1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#33506B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542caf;
/* rgb */ color: rgb(84, 44, 175);
/* oklch */ color: oklch(43.0% 0.193 289.7);
Tailwind
colors: {
  custom: {
    50: '#8e69c8',
    500: '#542caf',
    950: '#000000',
  },
}
SCSS
$custom: #542caf;
$custom-light: #8e69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#542caf",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 258.321,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42966,
    "c": 0.1926,
    "h": 289.7
  },
  "luminance": 0.06781
}

Semantic roles & 50–950 ramp

primary
#542CAF
secondary
#ACC572
accent
#E345B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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