#3A0542#3A0542

#3A0542 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.6% C 0.112 H 321.9°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#3A0542
RGBrgb(58, 5, 66)
HSLhsl(292, 86%, 14%)
HSVhsv(292, 92%, 26%)
CMYKcmyk(12.1%, 92.4%, 0%, 74.1%)
CIE-LABlab(11.97, 33.55, -24.70)
CIE-LCHlch(11.97, 41.66, 323.64°)
OKLaboklab(25.61% 0.0883 -0.0693)
OKLCHoklch(25.61% 0.112 321.9)
XYZxyz(2.7825, 1.4016, 5.2772)
Luminance0.0140 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0542 #0D4205
analogous
#1C0542 #3A0542 #42052C
triadic
#3A0542 #423A05 #05423A
tetradic
#3A0542 #421C05 #0D4205 #052C42
square
#3A0542 #421C05 #0D4205 #052C42
split-complementary
#3A0542 #2C4205 #05421C
monochromatic
#19021C #19021C #3A0542 #6C097B #9E0EB4

Accessibility & contrast

On white

16.40
#3A0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#3A0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0542
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0542#FFFFFF#000000##FFFFFF
##3A05421.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C44
Deuteranopia (green-blind)
#0E2141
Tritanopia (blue-blind)
#3B1224
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3a0542;
/* rgb */ color: rgb(58, 5, 66);
/* oklch */ color: oklch(25.6% 0.112 321.9);
Tailwind
colors: {
  custom: {
    50: '#734d77',
    500: '#3a0542',
    950: '#000000',
  },
}
SCSS
$custom: #3a0542;
$custom-light: #734d77;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0542",
  "rgb": {
    "r": 58,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 292.131,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25609,
    "c": 0.11222,
    "h": 321.9
  },
  "luminance": 0.01401
}

Semantic roles & 50–950 ramp

primary
#3A0542
secondary
#2D8220
accent
#FC2C47
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0542

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

Preview Lab → · Contrast checker → · Palette generator →

#3A0542 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva