#542EBD#542EBD

#542EBD is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.207 H 286.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#542EBD
RGBrgb(84, 46, 189)
HSLhsl(256, 61%, 46%)
HSVhsv(256, 76%, 74%)
CMYKcmyk(55.6%, 75.7%, 0%, 25.9%)
CIE-LABlab(32.95, 51.92, -68.73)
CIE-LCHlch(32.95, 86.13, 307.07°)
OKLaboklab(44.52% 0.0597 -0.1978)
OKLCHoklch(44.52% 0.207 286.8)
XYZxyz(13.8157, 7.5122, 48.8562)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EBD #97BD2E
analogous
#2E4FBD #542EBD #9B2EBD
triadic
#542EBD #BD542E #2EBD54
tetradic
#542EBD #BD2E4F #97BD2E #2EBD9B
square
#542EBD #BD2E4F #97BD2E #2EBD9B
split-complementary
#542EBD #BD9B2E #4FBD2E
monochromatic
#28165B #3E228C #542EBD #7653D5 #9D84E1

Accessibility & contrast

On white

8.39
#542EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#542EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EBD
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EBD#FFFFFF#000000##FFFFFF
##542EBD1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#255674
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542ebd;
/* rgb */ color: rgb(84, 46, 189);
/* oklch */ color: oklch(44.5% 0.207 286.8);
Tailwind
colors: {
  custom: {
    50: '#906bd2',
    500: '#542ebd',
    950: '#000000',
  },
}
SCSS
$custom: #542ebd;
$custom-light: #906bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#542ebd",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 255.944,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44516,
    "c": 0.2066,
    "h": 286.8
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#542EBD
secondary
#B6CA7C
accent
#E444B9
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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