#542BB7#542BB7

#542BB7 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.6% C 0.203 H 288.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#542BB7
RGBrgb(84, 43, 183)
HSLhsl(258, 62%, 44%)
HSVhsv(258, 77%, 72%)
CMYKcmyk(54.1%, 76.5%, 0%, 28.2%)
CIE-LABlab(31.88, 51.68, -66.93)
CIE-LCHlch(31.88, 84.56, 307.67°)
OKLaboklab(43.6% 0.0635 -0.1925)
OKLCHoklch(43.6% 0.203 288.3)
XYZxyz(13.0648, 7.0308, 45.4592)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB7 #8EB72B
analogous
#2B48B7 #542BB7 #9A2BB7
triadic
#542BB7 #B7542B #2BB754
tetradic
#542BB7 #B72B48 #8EB72B #2BB79A
square
#542BB7 #B72B48 #8EB72B #2BB79A
split-complementary
#542BB7 #B79A2B #48B72B
monochromatic
#271454 #3D1F85 #542BB7 #734BD5 #997CE0

Accessibility & contrast

On white

8.73
#542BB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#542BB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BB7
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB7#FFFFFF#000000##FFFFFF
##542BB71.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#2C5270
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542bb7;
/* rgb */ color: rgb(84, 43, 183);
/* oklch */ color: oklch(43.6% 0.203 288.3);
Tailwind
colors: {
  custom: {
    50: '#8f69ce',
    500: '#542bb7',
    950: '#000000',
  },
}
SCSS
$custom: #542bb7;
$custom-light: #8f69ce;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb7",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 257.571,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43596,
    "c": 0.20273,
    "h": 288.3
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

primary
#542BB7
secondary
#B0C975
accent
#E543B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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