#542BB3#542BB3

#542BB3 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.198 H 289.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#542BB3
RGBrgb(84, 43, 179)
HSLhsl(258, 61%, 44%)
HSVhsv(258, 76%, 70%)
CMYKcmyk(53.1%, 76%, 0%, 29.8%)
CIE-LABlab(31.50, 50.56, -65.17)
CIE-LCHlch(31.50, 82.49, 307.81°)
OKLaboklab(43.22% 0.0646 -0.1874)
OKLCHoklch(43.22% 0.198 289)
XYZxyz(12.6543, 6.8666, 43.2977)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB3 #8AB32B
analogous
#2B46B3 #542BB3 #982BB3
triadic
#542BB3 #B3542B #2BB354
tetradic
#542BB3 #B32B46 #8AB32B #2BB398
square
#542BB3 #B32B46 #8AB32B #2BB398
split-complementary
#542BB3 #B3982B #46B32B
monochromatic
#261350 #3D1F82 #542BB3 #7248D3 #9879DF

Accessibility & contrast

On white

8.85
#542BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#542BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BB3
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB3#FFFFFF#000000##FFFFFF
##542BB31.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB7
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2F516D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542bb3;
/* rgb */ color: rgb(84, 43, 179);
/* oklch */ color: oklch(43.2% 0.198 289.0);
Tailwind
colors: {
  custom: {
    50: '#8e69cb',
    500: '#542bb3',
    950: '#000000',
  },
}
SCSS
$custom: #542bb3;
$custom-light: #8e69cb;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb3",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 258.088,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43218,
    "c": 0.1982,
    "h": 289
  },
  "luminance": 0.06867
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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