#542DB3#542DB3

#542DB3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.5% C 0.196 H 288.7°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#542DB3
RGBrgb(84, 45, 179)
HSLhsl(257, 60%, 44%)
HSVhsv(257, 75%, 70%)
CMYKcmyk(53.1%, 74.9%, 0%, 29.8%)
CIE-LABlab(31.84, 49.59, -64.61)
CIE-LCHlch(31.84, 81.45, 307.51°)
OKLaboklab(43.46% 0.063 -0.1858)
OKLCHoklch(43.46% 0.196 288.7)
XYZxyz(12.7288, 7.0157, 43.3225)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DB3 #8CB32D
analogous
#2D49B3 #542DB3 #972DB3
triadic
#542DB3 #B3542D #2DB354
tetradic
#542DB3 #B32D49 #8CB32D #2DB397
square
#542DB3 #B32D49 #8CB32D #2DB397
split-complementary
#542DB3 #B3972D #49B32D
monochromatic
#261451 #3D2182 #542DB3 #734BD2 #997CDE

Accessibility & contrast

On white

8.74
#542DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542DB3
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DB3#FFFFFF#000000##FFFFFF
##542DB31.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#2F526E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542db3;
/* rgb */ color: rgb(84, 45, 179);
/* oklch */ color: oklch(43.5% 0.196 288.7);
Tailwind
colors: {
  custom: {
    50: '#8e6acb',
    500: '#542db3',
    950: '#000000',
  },
}
SCSS
$custom: #542db3;
$custom-light: #8e6acb;
$custom-dark: #000000;
JSON
{
  "hex": "#542db3",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 257.463,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43458,
    "c": 0.19616,
    "h": 288.7
  },
  "luminance": 0.07016
}

Semantic roles & 50–950 ramp

primary
#542DB3
secondary
#AFC775
accent
#E345B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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