#542895#542895

#542895 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.1% C 0.167 H 296.5°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#542895
RGBrgb(84, 40, 149)
HSLhsl(264, 58%, 37%)
HSVhsv(264, 73%, 58%)
CMYKcmyk(43.6%, 73.2%, 0%, 41.6%)
CIE-LABlab(28.31, 43.79, -52.27)
CIE-LCHlch(28.31, 68.19, 309.96°)
OKLaboklab(40.14% 0.0745 -0.1495)
OKLCHoklch(40.14% 0.167 296.5)
XYZxyz(9.8383, 5.5721, 28.9851)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542895 #699528
analogous
#283395 #542895 #8B2895
triadic
#542895 #955428 #289554
tetradic
#542895 #952833 #699528 #28958B
square
#542895 #952833 #699528 #28958B
split-complementary
#542895 #958B28 #339528
monochromatic
#1E0E35 #391B65 #542895 #6F35C5 #9162D5

Accessibility & contrast

On white

9.93
#542895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#542895 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542895
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542895#FFFFFF#000000##FFFFFF
##5428951.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#43445C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542895;
/* rgb */ color: rgb(84, 40, 149);
/* oklch */ color: oklch(40.1% 0.167 296.5);
Tailwind
colors: {
  custom: {
    50: '#8a66b5',
    500: '#542895',
    950: '#000000',
  },
}
SCSS
$custom: #542895;
$custom-light: #8a66b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542895",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 149
  },
  "hsl": {
    "h": 264.22,
    "s": 57.672,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40144,
    "c": 0.16705,
    "h": 296.5
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#542895
secondary
#95BB5E
accent
#E147A3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542895

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

Preview Lab → · Contrast checker → · Palette generator →

#542895 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva