#3A0547#3A0547

#3A0547 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.117 H 318.4°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#3A0547
RGBrgb(58, 5, 71)
HSLhsl(288, 87%, 15%)
HSVhsv(288, 93%, 28%)
CMYKcmyk(18.3%, 93%, 0%, 72.2%)
CIE-LABlab(12.37, 34.60, -27.56)
CIE-LCHlch(12.37, 44.23, 321.46°)
OKLaboklab(26.02% 0.0873 -0.0776)
OKLCHoklch(26.02% 0.117 318.4)
XYZxyz(2.9364, 1.4632, 6.0878)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0547 #124705
analogous
#190547 #3A0547 #470533
triadic
#3A0547 #473A05 #05473A
tetradic
#3A0547 #471905 #124705 #053347
square
#3A0547 #471905 #124705 #053347
split-complementary
#3A0547 #334705 #054719
monochromatic
#17021D #17021D #3A0547 #690980 #970DB9

Accessibility & contrast

On white

16.25
#3A0547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0547
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0547#FFFFFF#000000##FFFFFF
##3A05471.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#3A1527
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #3a0547;
/* rgb */ color: rgb(58, 5, 71);
/* oklch */ color: oklch(26.0% 0.117 318.4);
Tailwind
colors: {
  custom: {
    50: '#734e7b',
    500: '#3a0547',
    950: '#000000',
  },
}
SCSS
$custom: #3a0547;
$custom-light: #734e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0547",
  "rgb": {
    "r": 58,
    "g": 5,
    "b": 71
  },
  "hsl": {
    "h": 288.182,
    "s": 86.842,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2602,
    "c": 0.11684,
    "h": 318.4
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#3A0547
secondary
#358721
accent
#FD2B54
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0547

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

Preview Lab → · Contrast checker → · Palette generator →

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