#3A0540#3A0540

#3A0540 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.110 H 323.4°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#3A0540
RGBrgb(58, 5, 64)
HSLhsl(294, 86%, 14%)
HSVhsv(294, 92%, 25%)
CMYKcmyk(9.4%, 92.2%, 0%, 74.9%)
CIE-LABlab(11.81, 33.14, -23.53)
CIE-LCHlch(11.81, 40.64, 324.62°)
OKLaboklab(25.45% 0.0886 -0.0658)
OKLCHoklch(25.45% 0.11 323.4)
XYZxyz(2.7245, 1.3784, 4.9721)
Luminance0.0138 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0540 #0B4005
analogous
#1C0540 #3A0540 #400528
triadic
#3A0540 #403A05 #05403A
tetradic
#3A0540 #401C05 #0B4005 #052840
square
#3A0540 #401C05 #0B4005 #052840
split-complementary
#3A0540 #284005 #05401C
monochromatic
#1A021C #1A021C #3A0540 #6D0979 #A10EB2

Accessibility & contrast

On white

16.46
#3A0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0540
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0540#FFFFFF#000000##FFFFFF
##3A05401.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#10213F
Tritanopia (blue-blind)
#3B1123
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #3a0540;
/* rgb */ color: rgb(58, 5, 64);
/* oklch */ color: oklch(25.5% 0.110 323.4);
Tailwind
colors: {
  custom: {
    50: '#734d75',
    500: '#3a0540',
    950: '#000000',
  },
}
SCSS
$custom: #3a0540;
$custom-light: #734d75;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0540",
  "rgb": {
    "r": 58,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 293.898,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.25451,
    "c": 0.11039,
    "h": 323.4
  },
  "luminance": 0.01378
}

Semantic roles & 50–950 ramp

primary
#3A0540
secondary
#2A8120
accent
#FC2C41
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3A0540

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

Preview Lab → · Contrast checker → · Palette generator →

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