#542FB5#542FB5

#542FB5 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.196 H 288.1°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#542FB5
RGBrgb(84, 47, 181)
HSLhsl(257, 59%, 45%)
HSVhsv(257, 74%, 71%)
CMYKcmyk(53.6%, 74%, 0%, 29%)
CIE-LABlab(32.38, 49.16, -64.93)
CIE-LCHlch(32.38, 81.44, 307.13°)
OKLaboklab(43.89% 0.0609 -0.1867)
OKLCHoklch(43.89% 0.196 288.1)
XYZxyz(13.0107, 7.2534, 44.4216)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FB5 #90B52F
analogous
#2F4DB5 #542FB5 #972FB5
triadic
#542FB5 #B5542F #2FB554
tetradic
#542FB5 #B52F4D #90B52F #2FB597
square
#542FB5 #B52F4D #90B52F #2FB597
split-complementary
#542FB5 #B5972F #4DB52F
monochromatic
#271654 #3D2284 #542FB5 #7450D1 #9A80DE

Accessibility & contrast

On white

8.57
#542FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#542FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FB5
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FB5#FFFFFF#000000##FFFFFF
##542FB51.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#2D5470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542fb5;
/* rgb */ color: rgb(84, 47, 181);
/* oklch */ color: oklch(43.9% 0.196 288.1);
Tailwind
colors: {
  custom: {
    50: '#8e6bcc',
    500: '#542fb5',
    950: '#000000',
  },
}
SCSS
$custom: #542fb5;
$custom-light: #8e6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#542fb5",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 256.567,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43891,
    "c": 0.19637,
    "h": 288.1
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#542FB5
secondary
#B1C779
accent
#E246B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #542FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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