#542FBF#542FBF

#542FBF is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.208 H 286.3°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#542FBF
RGBrgb(84, 47, 191)
HSLhsl(255, 61%, 47%)
HSVhsv(255, 75%, 75%)
CMYKcmyk(56%, 75.4%, 0%, 25.1%)
CIE-LABlab(33.30, 52.00, -69.31)
CIE-LCHlch(33.30, 86.65, 306.88°)
OKLaboklab(44.83% 0.0584 -0.1995)
OKLCHoklch(44.83% 0.208 286.3)
XYZxyz(14.0738, 7.6786, 50.0206)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FBF #9ABF2F
analogous
#2F52BF #542FBF #9C2FBF
triadic
#542FBF #BF542F #2FBF54
tetradic
#542FBF #BF2F52 #9ABF2F #2FBF9C
square
#542FBF #BF2F52 #9ABF2F #2FBF9C
split-complementary
#542FBF #BF9C2F #52BF2F
monochromatic
#29175D #3E238E #542FBF #7756D5 #9E87E1

Accessibility & contrast

On white

8.28
#542FBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#542FBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FBF
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FBF#FFFFFF#000000##FFFFFF
##542FBF1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542fbf;
/* rgb */ color: rgb(84, 47, 191);
/* oklch */ color: oklch(44.8% 0.208 286.3);
Tailwind
colors: {
  custom: {
    50: '#906cd4',
    500: '#542fbf',
    950: '#000000',
  },
}
SCSS
$custom: #542fbf;
$custom-light: #906cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#542fbf",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 191
  },
  "hsl": {
    "h": 255.417,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44825,
    "c": 0.20791,
    "h": 286.3
  },
  "luminance": 0.07679
}

Semantic roles & 50–950 ramp

primary
#542FBF
secondary
#B7CB7F
accent
#E444BB
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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