#3A0546#3A0546

#3A0546 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.116 H 319.0°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#3A0546
RGBrgb(58, 5, 70)
HSLhsl(289, 87%, 15%)
HSVhsv(289, 93%, 27%)
CMYKcmyk(17.1%, 92.9%, 0%, 72.5%)
CIE-LABlab(12.29, 34.38, -26.99)
CIE-LCHlch(12.29, 43.71, 321.87°)
OKLaboklab(25.94% 0.0875 -0.076)
OKLCHoklch(25.94% 0.116 319)
XYZxyz(2.9045, 1.4504, 5.9201)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0546 #114605
analogous
#1A0546 #3A0546 #460532
triadic
#3A0546 #463A05 #05463A
tetradic
#3A0546 #461A05 #114605 #053246
square
#3A0546 #461A05 #114605 #053246
split-complementary
#3A0546 #324605 #05461A
monochromatic
#18021D #18021D #3A0546 #69097F #990DB8

Accessibility & contrast

On white

16.28
#3A0546 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#3A0546 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0546
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0546#FFFFFF#000000##FFFFFF
##3A05461.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#3A1427
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0546;
/* rgb */ color: rgb(58, 5, 70);
/* oklch */ color: oklch(25.9% 0.116 319.0);
Tailwind
colors: {
  custom: {
    50: '#734d7a',
    500: '#3a0546',
    950: '#000000',
  },
}
SCSS
$custom: #3a0546;
$custom-light: #734d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0546",
  "rgb": {
    "r": 58,
    "g": 5,
    "b": 70
  },
  "hsl": {
    "h": 288.923,
    "s": 86.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25936,
    "c": 0.11591,
    "h": 319
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#3A0546
secondary
#338621
accent
#FD2B52
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0546

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

Preview Lab → · Contrast checker → · Palette generator →

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