#542DBF#542DBF

#542DBF is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.210 H 286.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#542DBF
RGBrgb(84, 45, 191)
HSLhsl(256, 62%, 46%)
HSVhsv(256, 76%, 75%)
CMYKcmyk(56%, 76.4%, 0%, 25.1%)
CIE-LABlab(32.97, 52.96, -69.87)
CIE-LCHlch(32.97, 87.67, 307.16°)
OKLaboklab(44.59% 0.0599 -0.2011)
OKLCHoklch(44.59% 0.21 286.6)
XYZxyz(13.9957, 7.5224, 49.9946)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DBF #98BF2D
analogous
#2D4FBF #542DBF #9D2DBF
triadic
#542DBF #BF542D #2DBF54
tetradic
#542DBF #BF2D4F #98BF2D #2DBF9D
square
#542DBF #BF2D4F #98BF2D #2DBF9D
split-complementary
#542DBF #BF9D2D #4FBF2D
monochromatic
#28165C #3E218D #542DBF #7653D6 #9D84E2

Accessibility & contrast

On white

8.38
#542DBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542DBF
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DBF#FFFFFF#000000##FFFFFF
##542DBF1.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542dbf;
/* rgb */ color: rgb(84, 45, 191);
/* oklch */ color: oklch(44.6% 0.210 286.6);
Tailwind
colors: {
  custom: {
    50: '#906bd4',
    500: '#542dbf',
    950: '#000000',
  },
}
SCSS
$custom: #542dbf;
$custom-light: #906bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#542dbf",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 191
  },
  "hsl": {
    "h": 256.027,
    "s": 61.864,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44589,
    "c": 0.20985,
    "h": 286.6
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#542DBF
secondary
#B6CB7C
accent
#E543BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542DBF

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

Preview Lab → · Contrast checker → · Palette generator →

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