#542AAF#542AAF

#542AAF is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.195 H 290.0°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#542AAF
RGBrgb(84, 42, 175)
HSLhsl(259, 61%, 43%)
HSVhsv(259, 76%, 69%)
CMYKcmyk(52%, 76%, 0%, 31.4%)
CIE-LABlab(30.96, 49.93, -63.67)
CIE-LCHlch(30.96, 80.92, 308.10°)
OKLaboklab(42.73% 0.0665 -0.183)
OKLCHoklch(42.73% 0.195 290)
XYZxyz(12.2197, 6.6354, 41.1860)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AAF #85AF2A
analogous
#2A43AF #542AAF #962AAF
triadic
#542AAF #AF542A #2AAF54
tetradic
#542AAF #AF2A43 #85AF2A #2AAF96
square
#542AAF #AF2A43 #85AF2A #2AAF96
split-complementary
#542AAF #AF962A #43AF2A
monochromatic
#25124C #3C1E7E #542AAF #7144D2 #9675DE

Accessibility & contrast

On white

9.02
#542AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#542AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AAF
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AAF#FFFFFF#000000##FFFFFF
##542AAF1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#334F6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542aaf;
/* rgb */ color: rgb(84, 42, 175);
/* oklch */ color: oklch(42.7% 0.195 290.0);
Tailwind
colors: {
  custom: {
    50: '#8e68c8',
    500: '#542aaf',
    950: '#000000',
  },
}
SCSS
$custom: #542aaf;
$custom-light: #8e68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#542aaf",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 258.947,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42727,
    "c": 0.19467,
    "h": 290
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#542AAF
secondary
#AAC66F
accent
#E443B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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