#542BB6#542BB6

#542BB6 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.5% C 0.202 H 288.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#542BB6
RGBrgb(84, 43, 182)
HSLhsl(258, 62%, 44%)
HSVhsv(258, 76%, 71%)
CMYKcmyk(53.8%, 76.4%, 0%, 28.6%)
CIE-LABlab(31.78, 51.40, -66.50)
CIE-LCHlch(31.78, 84.04, 307.70°)
OKLaboklab(43.5% 0.0638 -0.1912)
OKLCHoklch(43.5% 0.202 288.4)
XYZxyz(12.9610, 6.9893, 44.9130)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB6 #8DB62B
analogous
#2B48B6 #542BB6 #9A2BB6
triadic
#542BB6 #B6542B #2BB654
tetradic
#542BB6 #B62B48 #8DB62B #2BB69A
square
#542BB6 #B62B48 #8DB62B #2BB69A
split-complementary
#542BB6 #B69A2B #48B62B
monochromatic
#261453 #3D1F84 #542BB6 #734AD4 #997BE0

Accessibility & contrast

On white

8.76
#542BB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#542BB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BB6
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB6#FFFFFF#000000##FFFFFF
##542BB61.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#2D526F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542bb6;
/* rgb */ color: rgb(84, 43, 182);
/* oklch */ color: oklch(43.5% 0.202 288.4);
Tailwind
colors: {
  custom: {
    50: '#8f69cd',
    500: '#542bb6',
    950: '#000000',
  },
}
SCSS
$custom: #542bb6;
$custom-light: #8f69cd;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb6",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 257.698,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43501,
    "c": 0.2016,
    "h": 288.4
  },
  "luminance": 0.0699
}

Semantic roles & 50–950 ramp

primary
#542BB6
secondary
#B0C875
accent
#E543B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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