#542ABC#542ABC

#542ABC is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.209 H 287.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#542ABC
RGBrgb(84, 42, 188)
HSLhsl(257, 63%, 45%)
HSVhsv(257, 78%, 74%)
CMYKcmyk(55.3%, 77.7%, 0%, 26.3%)
CIE-LABlab(32.19, 53.53, -69.37)
CIE-LCHlch(32.19, 87.62, 307.65°)
OKLaboklab(43.96% 0.0628 -0.1997)
OKLCHoklch(43.96% 0.209 287.5)
XYZxyz(13.5585, 7.1709, 48.2369)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542ABC #92BC2A
analogous
#2A49BC #542ABC #9D2ABC
triadic
#542ABC #BC542A #2ABC54
tetradic
#542ABC #BC2A49 #92BC2A #2ABC9D
square
#542ABC #BC2A49 #92BC2A #2ABC9D
split-complementary
#542ABC #BC9D2A #49BC2A
monochromatic
#271458 #3E1F8A #542ABC #744CD7 #9B7EE2

Accessibility & contrast

On white

8.63
#542ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#542ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542ABC
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542ABC#FFFFFF#000000##FFFFFF
##542ABC1.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#265472
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542abc;
/* rgb */ color: rgb(84, 42, 188);
/* oklch */ color: oklch(44.0% 0.209 287.5);
Tailwind
colors: {
  custom: {
    50: '#9069d1',
    500: '#542abc',
    950: '#000000',
  },
}
SCSS
$custom: #542abc;
$custom-light: #9069d1;
$custom-dark: #000000;
JSON
{
  "hex": "#542abc",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 257.26,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43961,
    "c": 0.2093,
    "h": 287.5
  },
  "luminance": 0.07172
}

Semantic roles & 50–950 ramp

primary
#542ABC
secondary
#B3CB77
accent
#E741B7
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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