#3A0947#3A0947

#3A0947 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.4% C 0.112 H 317.9°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#3A0947
RGBrgb(58, 9, 71)
HSLhsl(287, 78%, 16%)
HSVhsv(287, 87%, 28%)
CMYKcmyk(18.3%, 87.3%, 0%, 72.2%)
CIE-LABlab(12.92, 32.99, -26.67)
CIE-LCHlch(12.92, 42.43, 321.05°)
OKLaboklab(26.41% 0.0832 -0.0751)
OKLCHoklch(26.41% 0.112 317.9)
XYZxyz(2.9798, 1.5500, 6.1022)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0947 #164709
analogous
#1B0947 #3A0947 #470935
triadic
#3A0947 #473A09 #09473A
tetradic
#3A0947 #471B09 #164709 #093547
square
#3A0947 #471B09 #164709 #093547
split-complementary
#3A0947 #354709 #09471B
monochromatic
#16031B #16031B #3A0947 #66107D #9317B4

Accessibility & contrast

On white

16.03
#3A0947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#3A0947 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A0947
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0947#FFFFFF#000000##FFFFFF
##3A09471.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E49
Deuteranopia (green-blind)
#0C2346
Tritanopia (blue-blind)
#3A1728
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3a0947;
/* rgb */ color: rgb(58, 9, 71);
/* oklch */ color: oklch(26.4% 0.112 317.9);
Tailwind
colors: {
  custom: {
    50: '#734f7b',
    500: '#3a0947',
    950: '#000000',
  },
}
SCSS
$custom: #3a0947;
$custom-light: #734f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0947",
  "rgb": {
    "r": 58,
    "g": 9,
    "b": 71
  },
  "hsl": {
    "h": 287.419,
    "s": 77.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26407,
    "c": 0.11204,
    "h": 317.9
  },
  "luminance": 0.0155
}

Semantic roles & 50–950 ramp

primary
#3A0947
secondary
#3B8427
accent
#F4345C
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0947

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

Preview Lab → · Contrast checker → · Palette generator →

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