#542FBA#542FBA

#542FBA is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.202 H 287.2°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#542FBA
RGBrgb(84, 47, 186)
HSLhsl(256, 60%, 46%)
HSVhsv(256, 75%, 73%)
CMYKcmyk(54.8%, 74.7%, 0%, 27.1%)
CIE-LABlab(32.84, 50.58, -67.13)
CIE-LCHlch(32.84, 84.06, 307.00°)
OKLaboklab(44.36% 0.0597 -0.1931)
OKLCHoklch(44.36% 0.202 287.2)
XYZxyz(13.5330, 7.4623, 47.1721)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FBA #95BA2F
analogous
#2F4FBA #542FBA #992FBA
triadic
#542FBA #BA542F #2FBA54
tetradic
#542FBA #BA2F4F #95BA2F #2FBA99
square
#542FBA #BA2F4F #95BA2F #2FBA99
split-complementary
#542FBA #BA992F #4FBA2F
monochromatic
#281658 #3E2389 #542FBA #7553D3 #9C84E0

Accessibility & contrast

On white

8.42
#542FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#542FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FBA
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FBA#FFFFFF#000000##FFFFFF
##542FBA1.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#285672
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542fba;
/* rgb */ color: rgb(84, 47, 186);
/* oklch */ color: oklch(44.4% 0.202 287.2);
Tailwind
colors: {
  custom: {
    50: '#8f6cd0',
    500: '#542fba',
    950: '#000000',
  },
}
SCSS
$custom: #542fba;
$custom-light: #8f6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#542fba",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 255.971,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44355,
    "c": 0.20217,
    "h": 287.2
  },
  "luminance": 0.07463
}

Semantic roles & 50–950 ramp

primary
#542FBA
secondary
#B4C97C
accent
#E345B9
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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