#542BB4#542BB4

#542BB4 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.199 H 288.8°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#542BB4
RGBrgb(84, 43, 180)
HSLhsl(258, 61%, 44%)
HSVhsv(258, 76%, 71%)
CMYKcmyk(53.3%, 76.1%, 0%, 29.4%)
CIE-LABlab(31.59, 50.84, -65.62)
CIE-LCHlch(31.59, 83.01, 307.77°)
OKLaboklab(43.31% 0.0643 -0.1887)
OKLCHoklch(43.31% 0.199 288.8)
XYZxyz(12.7558, 6.9072, 43.8323)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB4 #8BB42B
analogous
#2B46B4 #542BB4 #982BB4
triadic
#542BB4 #B4542B #2BB454
tetradic
#542BB4 #B42B46 #8BB42B #2BB498
square
#542BB4 #B42B46 #8BB42B #2BB498
split-complementary
#542BB4 #B4982B #46B42B
monochromatic
#261351 #3D1F83 #542BB4 #7249D3 #987ADF

Accessibility & contrast

On white

8.82
#542BB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#542BB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BB4
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB4#FFFFFF#000000##FFFFFF
##542BB41.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#2E516E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542bb4;
/* rgb */ color: rgb(84, 43, 180);
/* oklch */ color: oklch(43.3% 0.199 288.8);
Tailwind
colors: {
  custom: {
    50: '#8e69cc',
    500: '#542bb4',
    950: '#000000',
  },
}
SCSS
$custom: #542bb4;
$custom-light: #8e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb4",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 257.956,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43312,
    "c": 0.19933,
    "h": 288.8
  },
  "luminance": 0.06908
}

Semantic roles & 50–950 ramp

primary
#542BB4
secondary
#AEC773
accent
#E543B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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