#542ABA#542ABA

#542ABA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.8% C 0.207 H 287.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#542ABA
RGBrgb(84, 42, 186)
HSLhsl(258, 63%, 45%)
HSVhsv(258, 77%, 73%)
CMYKcmyk(54.8%, 77.4%, 0%, 27.1%)
CIE-LABlab(32.00, 52.97, -68.51)
CIE-LCHlch(32.00, 86.60, 307.71°)
OKLaboklab(43.77% 0.0634 -0.1971)
OKLCHoklch(43.77% 0.207 287.8)
XYZxyz(13.3444, 7.0852, 47.1093)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542ABA #90BA2A
analogous
#2A48BA #542ABA #9C2ABA
triadic
#542ABA #BA542A #2ABA54
tetradic
#542ABA #BA2A48 #90BA2A #2ABA9C
square
#542ABA #BA2A48 #90BA2A #2ABA9C
split-complementary
#542ABA #BA9C2A #48BA2A
monochromatic
#271356 #3D1F88 #542ABA #744BD6 #9A7DE2

Accessibility & contrast

On white

8.69
#542ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#542ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542ABA
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542ABA#FFFFFF#000000##FFFFFF
##542ABA1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#295371
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542aba;
/* rgb */ color: rgb(84, 42, 186);
/* oklch */ color: oklch(43.8% 0.207 287.8);
Tailwind
colors: {
  custom: {
    50: '#8f69d0',
    500: '#542aba',
    950: '#000000',
  },
}
SCSS
$custom: #542aba;
$custom-light: #8f69d0;
$custom-dark: #000000;
JSON
{
  "hex": "#542aba",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 257.5,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43768,
    "c": 0.20707,
    "h": 287.8
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#542ABA
secondary
#B1CA76
accent
#E642B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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