#542BB5#542BB5

#542BB5 is a dark, highly saturated violet. Relative luminance 0.069; OKLCH L 43.4% C 0.200 H 288.6°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#542BB5
RGBrgb(84, 43, 181)
HSLhsl(258, 62%, 44%)
HSVhsv(258, 76%, 71%)
CMYKcmyk(53.6%, 76.2%, 0%, 29%)
CIE-LABlab(31.69, 51.12, -66.06)
CIE-LCHlch(31.69, 83.53, 307.74°)
OKLaboklab(43.41% 0.0641 -0.19)
OKLCHoklch(43.41% 0.2 288.6)
XYZxyz(12.8581, 6.9481, 44.3707)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BB5 #8CB52B
analogous
#2B47B5 #542BB5 #992BB5
triadic
#542BB5 #B5542B #2BB554
tetradic
#542BB5 #B52B47 #8CB52B #2BB599
square
#542BB5 #B52B47 #8CB52B #2BB599
split-complementary
#542BB5 #B5992B #47B52B
monochromatic
#261452 #3D1F84 #542BB5 #7349D4 #997BE0

Accessibility & contrast

On white

8.79
#542BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#542BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BB5
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BB5#FFFFFF#000000##FFFFFF
##542BB51.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB9
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#2E526F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542bb5;
/* rgb */ color: rgb(84, 43, 181);
/* oklch */ color: oklch(43.4% 0.200 288.6);
Tailwind
colors: {
  custom: {
    50: '#8e69cc',
    500: '#542bb5',
    950: '#000000',
  },
}
SCSS
$custom: #542bb5;
$custom-light: #8e69cc;
$custom-dark: #000000;
JSON
{
  "hex": "#542bb5",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 257.826,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43407,
    "c": 0.20047,
    "h": 288.6
  },
  "luminance": 0.06949
}

Semantic roles & 50–950 ramp

primary
#542BB5
secondary
#AFC874
accent
#E543B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #542BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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