#542BBD#542BBD

#542BBD is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.2% C 0.209 H 287.2°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#542BBD
RGBrgb(84, 43, 189)
HSLhsl(257, 63%, 45%)
HSVhsv(257, 77%, 74%)
CMYKcmyk(55.6%, 77.2%, 0%, 25.9%)
CIE-LABlab(32.45, 53.34, -69.54)
CIE-LCHlch(32.45, 87.64, 307.49°)
OKLaboklab(44.17% 0.0618 -0.2002)
OKLCHoklch(44.17% 0.209 287.2)
XYZxyz(13.7026, 7.2860, 48.8185)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BBD #94BD2B
analogous
#2B4BBD #542BBD #9D2BBD
triadic
#542BBD #BD542B #2BBD54
tetradic
#542BBD #BD2B4B #94BD2B #2BBD9D
square
#542BBD #BD2B4B #94BD2B #2BBD9D
split-complementary
#542BBD #BD9D2B #4BBD2B
monochromatic
#281459 #3E208B #542BBD #754ED7 #9C80E2

Accessibility & contrast

On white

8.55
#542BBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#542BBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BBD
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BBD#FFFFFF#000000##FFFFFF
##542BBD1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#255573
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542bbd;
/* rgb */ color: rgb(84, 43, 189);
/* oklch */ color: oklch(44.2% 0.209 287.2);
Tailwind
colors: {
  custom: {
    50: '#906ad2',
    500: '#542bbd',
    950: '#000000',
  },
}
SCSS
$custom: #542bbd;
$custom-light: #906ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#542bbd",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 189
  },
  "hsl": {
    "h": 256.849,
    "s": 62.931,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44169,
    "c": 0.20949,
    "h": 287.2
  },
  "luminance": 0.07287
}

Semantic roles & 50–950 ramp

primary
#542BBD
secondary
#B4CB79
accent
#E642B8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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