#542BAF#542BAF

#542BAF is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.194 H 289.8°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#542BAF
RGBrgb(84, 43, 175)
HSLhsl(259, 61%, 43%)
HSVhsv(259, 75%, 69%)
CMYKcmyk(52%, 75.4%, 0%, 31.4%)
CIE-LABlab(31.13, 49.45, -63.40)
CIE-LCHlch(31.13, 80.40, 307.96°)
OKLaboklab(42.85% 0.0657 -0.1822)
OKLCHoklch(42.85% 0.194 289.8)
XYZxyz(12.2557, 6.7072, 41.1980)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BAF #86AF2B
analogous
#2B44AF #542BAF #962BAF
triadic
#542BAF #AF542B #2BAF54
tetradic
#542BAF #AF2B44 #86AF2B #2BAF96
square
#542BAF #AF2B44 #86AF2B #2BAF96
split-complementary
#542BAF #AF962B #44AF2B
monochromatic
#25134D #3C1F7E #542BAF #7146D1 #9777DE

Accessibility & contrast

On white

8.97
#542BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#542BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BAF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BAF#FFFFFF#000000##FFFFFF
##542BAF1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542baf;
/* rgb */ color: rgb(84, 43, 175);
/* oklch */ color: oklch(42.8% 0.194 289.8);
Tailwind
colors: {
  custom: {
    50: '#8e69c8',
    500: '#542baf',
    950: '#000000',
  },
}
SCSS
$custom: #542baf;
$custom-light: #8e69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#542baf",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 258.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.19364,
    "h": 289.8
  },
  "luminance": 0.06708
}

Semantic roles & 50–950 ramp

primary
#542BAF
secondary
#ABC570
accent
#E444B2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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