#542EB0#542EB0

#542EB0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.192 H 289.2°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#542EB0
RGBrgb(84, 46, 176)
HSLhsl(258, 59%, 44%)
HSVhsv(258, 74%, 69%)
CMYKcmyk(52.3%, 73.9%, 0%, 31%)
CIE-LABlab(31.74, 48.25, -62.99)
CIE-LCHlch(31.74, 79.34, 307.45°)
OKLaboklab(43.31% 0.063 -0.181)
OKLCHoklch(43.31% 0.192 289.2)
XYZxyz(12.4673, 6.9728, 41.7548)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB0 #8AB02E
analogous
#2E49B0 #542EB0 #952EB0
triadic
#542EB0 #B0542E #2EB054
tetradic
#542EB0 #B02E49 #8AB02E #2EB095
square
#542EB0 #B02E49 #8AB02E #2EB095
split-complementary
#542EB0 #B0952E #49B02E
monochromatic
#26154F #3D217F #542EB0 #724BD0 #987CDD

Accessibility & contrast

On white

8.77
#542EB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#542EB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB0
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB0#FFFFFF#000000##FFFFFF
##542EB01.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#32516C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542eb0;
/* rgb */ color: rgb(84, 46, 176);
/* oklch */ color: oklch(43.3% 0.192 289.2);
Tailwind
colors: {
  custom: {
    50: '#8e6bc9',
    500: '#542eb0',
    950: '#000000',
  },
}
SCSS
$custom: #542eb0;
$custom-light: #8e6bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb0",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 176
  },
  "hsl": {
    "h": 257.538,
    "s": 58.559,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43306,
    "c": 0.19162,
    "h": 289.2
  },
  "luminance": 0.06973
}

Semantic roles & 50–950 ramp

primary
#542EB0
secondary
#AEC575
accent
#E246B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EB0

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

Preview Lab → · Contrast checker → · Palette generator →

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