#542FAF#542FAF

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

Color values

HEX#542FAF
RGBrgb(84, 47, 175)
HSLhsl(257, 58%, 44%)
HSVhsv(257, 73%, 69%)
CMYKcmyk(52%, 73.1%, 0%, 31.4%)
CIE-LABlab(31.84, 47.46, -62.24)
CIE-LCHlch(31.84, 78.27, 307.33°)
OKLaboklab(43.34% 0.0624 -0.1788)
OKLCHoklch(43.34% 0.189 289.2)
XYZxyz(12.4083, 7.0124, 41.2489)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FAF #8AAF2F
analogous
#2F4AAF #542FAF #942FAF
triadic
#542FAF #AF542F #2FAF54
tetradic
#542FAF #AF2F4A #8AAF2F #2FAF94
square
#542FAF #AF2F4A #8AAF2F #2FAF94
split-complementary
#542FAF #AF942F #4AAF2F
monochromatic
#26154F #3D227F #542FAF #724CCF #987CDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542FAF#FFFFFF#000000##FFFFFF
##542FAF1.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)
#004DB3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#32516C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542faf;
/* rgb */ color: rgb(84, 47, 175);
/* oklch */ color: oklch(43.3% 0.189 289.2);
Tailwind
colors: {
  custom: {
    50: '#8d6bc8',
    500: '#542faf',
    950: '#000000',
  },
}
SCSS
$custom: #542faf;
$custom-light: #8d6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#542faf",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 257.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43342,
    "c": 0.18937,
    "h": 289.2
  },
  "luminance": 0.07013
}

Semantic roles & 50–950 ramp

primary
#542FAF
secondary
#AEC475
accent
#E147B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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