#542EBF#542EBF

#542EBF is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.209 H 286.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#542EBF
RGBrgb(84, 46, 191)
HSLhsl(256, 61%, 46%)
HSVhsv(256, 76%, 75%)
CMYKcmyk(56%, 75.9%, 0%, 25.1%)
CIE-LABlab(33.13, 52.49, -69.59)
CIE-LCHlch(33.13, 87.17, 307.02°)
OKLaboklab(44.71% 0.0591 -0.2003)
OKLCHoklch(44.71% 0.209 286.4)
XYZxyz(14.0343, 7.5996, 50.0075)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EBF #99BF2E
analogous
#2E51BF #542EBF #9D2EBF
triadic
#542EBF #BF542E #2EBF54
tetradic
#542EBF #BF2E51 #99BF2E #2EBF9D
square
#542EBF #BF2E51 #99BF2E #2EBF9D
split-complementary
#542EBF #BF9D2E #51BF2E
monochromatic
#29165C #3E228E #542EBF #7654D6 #9E86E2

Accessibility & contrast

On white

8.33
#542EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#542EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EBF
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EBF#FFFFFF#000000##FFFFFF
##542EBF1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C3
Deuteranopia (green-blind)
#004ABC
Tritanopia (blue-blind)
#225775
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542ebf;
/* rgb */ color: rgb(84, 46, 191);
/* oklch */ color: oklch(44.7% 0.209 286.4);
Tailwind
colors: {
  custom: {
    50: '#906bd4',
    500: '#542ebf',
    950: '#000000',
  },
}
SCSS
$custom: #542ebf;
$custom-light: #906bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#542ebf",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 255.724,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44706,
    "c": 0.20889,
    "h": 286.4
  },
  "luminance": 0.076
}

Semantic roles & 50–950 ramp

primary
#542EBF
secondary
#B7CB7E
accent
#E444BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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