#542FBE#542FBE

#542FBE is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.7% C 0.207 H 286.5°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#542FBE
RGBrgb(84, 47, 190)
HSLhsl(256, 60%, 46%)
HSVhsv(256, 75%, 75%)
CMYKcmyk(55.8%, 75.3%, 0%, 25.5%)
CIE-LABlab(33.21, 51.72, -68.88)
CIE-LCHlch(33.21, 86.13, 306.90°)
OKLaboklab(44.73% 0.0587 -0.1983)
OKLCHoklch(44.73% 0.207 286.5)
XYZxyz(13.9641, 7.6348, 49.4431)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FBE #99BE2F
analogous
#2F52BE #542FBE #9C2FBE
triadic
#542FBE #BE542F #2FBE54
tetradic
#542FBE #BE2F52 #99BE2F #2FBE9C
square
#542FBE #BE2F52 #99BE2F #2FBE9C
split-complementary
#542FBE #BE9C2F #52BE2F
monochromatic
#29175C #3E238D #542FBE #7655D5 #9E86E1

Accessibility & contrast

On white

8.31
#542FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#542FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FBE
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FBE#FFFFFF#000000##FFFFFF
##542FBE1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#004ABB
Tritanopia (blue-blind)
#235775
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542fbe;
/* rgb */ color: rgb(84, 47, 190);
/* oklch */ color: oklch(44.7% 0.207 286.5);
Tailwind
colors: {
  custom: {
    50: '#906cd3',
    500: '#542fbe',
    950: '#000000',
  },
}
SCSS
$custom: #542fbe;
$custom-light: #906cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#542fbe",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 190
  },
  "hsl": {
    "h": 255.524,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44731,
    "c": 0.20676,
    "h": 286.5
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#542FBE
secondary
#B7CB7E
accent
#E344BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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