#542EAF#542EAF

#542EAF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.190 H 289.4°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#542EAF
RGBrgb(84, 46, 175)
HSLhsl(258, 58%, 43%)
HSVhsv(258, 74%, 69%)
CMYKcmyk(52%, 73.7%, 0%, 31.4%)
CIE-LABlab(31.65, 47.97, -62.54)
CIE-LCHlch(31.65, 78.81, 307.49°)
OKLaboklab(43.22% 0.0632 -0.1797)
OKLCHoklch(43.22% 0.19 289.4)
XYZxyz(12.3688, 6.9334, 41.2357)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EAF #89AF2E
analogous
#2E49AF #542EAF #942EAF
triadic
#542EAF #AF542E #2EAF54
tetradic
#542EAF #AF2E49 #89AF2E #2EAF94
square
#542EAF #AF2E49 #89AF2E #2EAF94
split-complementary
#542EAF #AF942E #49AF2E
monochromatic
#25154E #3D217F #542EAF #724BD0 #987BDC

Accessibility & contrast

On white

8.80
#542EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542EAF
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EAF#FFFFFF#000000##FFFFFF
##542EAF1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#33516C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542eaf;
/* rgb */ color: rgb(84, 46, 175);
/* oklch */ color: oklch(43.2% 0.190 289.4);
Tailwind
colors: {
  custom: {
    50: '#8d6bc8',
    500: '#542eaf',
    950: '#000000',
  },
}
SCSS
$custom: #542eaf;
$custom-light: #8d6bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#542eaf",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 257.674,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43215,
    "c": 0.19047,
    "h": 289.4
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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