#542FB7#542FB7

#542FB7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.199 H 287.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#542FB7
RGBrgb(84, 47, 183)
HSLhsl(256, 59%, 45%)
HSVhsv(256, 74%, 72%)
CMYKcmyk(54.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(32.56, 49.73, -65.81)
CIE-LCHlch(32.56, 82.49, 307.08°)
OKLaboklab(44.08% 0.0605 -0.1893)
OKLCHoklch(44.08% 0.199 287.7)
XYZxyz(13.2174, 7.3361, 45.5101)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FB7 #92B72F
analogous
#2F4EB7 #542FB7 #982FB7
triadic
#542FB7 #B7542F #2FB754
tetradic
#542FB7 #B72F4E #92B72F #2FB798
square
#542FB7 #B72F4E #92B72F #2FB798
split-complementary
#542FB7 #B7982F #4EB72F
monochromatic
#271656 #3E2286 #542FB7 #7451D2 #9B82DF

Accessibility & contrast

On white

8.51
#542FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#542FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FB7
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FB7#FFFFFF#000000##FFFFFF
##542FB71.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#2B5471
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542fb7;
/* rgb */ color: rgb(84, 47, 183);
/* oklch */ color: oklch(44.1% 0.199 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f6bce',
    500: '#542fb7',
    950: '#000000',
  },
}
SCSS
$custom: #542fb7;
$custom-light: #8f6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#542fb7",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 256.324,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.1987,
    "h": 287.7
  },
  "luminance": 0.07337
}

Semantic roles & 50–950 ramp

primary
#542FB7
secondary
#B3C87A
accent
#E245B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #542FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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