#540F76#540F76

#540F76 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.9% C 0.161 H 310.6°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#540F76
RGBrgb(84, 15, 118)
HSLhsl(280, 77%, 26%)
HSVhsv(280, 87%, 46%)
CMYKcmyk(28.8%, 87.3%, 0%, 53.7%)
CIE-LABlab(22.07, 46.45, -42.99)
CIE-LCHlch(22.07, 63.29, 317.22°)
OKLaboklab(34.94% 0.1045 -0.1221)
OKLCHoklch(34.94% 0.161 310.6)
XYZxyz(7.0964, 3.5346, 17.4445)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F76 #31760F
analogous
#200F76 #540F76 #760F64
triadic
#540F76 #76540F #0F7654
tetradic
#540F76 #76200F #31760F #0F6476
square
#540F76 #76200F #31760F #0F6476
split-complementary
#540F76 #64760F #0F7620
monochromatic
#13031B #2D0840 #540F76 #7B16AC #A11DE2

Accessibility & contrast

On white

12.30
#540F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#540F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F76
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F76#FFFFFF#000000##FFFFFF
##540F761.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4F2B45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #540f76;
/* rgb */ color: rgb(84, 15, 118);
/* oklch */ color: oklch(34.9% 0.161 310.6);
Tailwind
colors: {
  custom: {
    50: '#89599e',
    500: '#540f76',
    950: '#000000',
  },
}
SCSS
$custom: #540f76;
$custom-light: #89599e;
$custom-dark: #000000;
JSON
{
  "hex": "#540f76",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 280.194,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.16066,
    "h": 310.6
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

primary
#540F76
secondary
#5CAD33
accent
#F43473
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #540F76

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

Preview Lab → · Contrast checker → · Palette generator →

#540F76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva