#3A0847#3A0847

#3A0847 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.3% C 0.113 H 318.0°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#3A0847
RGBrgb(58, 8, 71)
HSLhsl(288, 80%, 15%)
HSVhsv(288, 89%, 28%)
CMYKcmyk(18.3%, 88.7%, 0%, 72.2%)
CIE-LABlab(12.79, 33.39, -26.89)
CIE-LCHlch(12.79, 42.87, 321.15°)
OKLaboklab(26.31% 0.0842 -0.0757)
OKLCHoklch(26.31% 0.113 318)
XYZxyz(2.9689, 1.5283, 6.0986)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A0847 #154708
analogous
#1A0847 #3A0847 #470834
triadic
#3A0847 #473A08 #08473A
tetradic
#3A0847 #471A08 #154708 #083447
square
#3A0847 #471A08 #154708 #083447
split-complementary
#3A0847 #344708 #08471A
monochromatic
#16031C #16031C #3A0847 #670E7E #9414B5

Accessibility & contrast

On white

16.08
#3A0847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A0847
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A0847#FFFFFF#000000##FFFFFF
##3A08471.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a0847;
/* rgb */ color: rgb(58, 8, 71);
/* oklch */ color: oklch(26.3% 0.113 318.0);
Tailwind
colors: {
  custom: {
    50: '#734f7b',
    500: '#3a0847',
    950: '#000000',
  },
}
SCSS
$custom: #3a0847;
$custom-light: #734f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a0847",
  "rgb": {
    "r": 58,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 287.619,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26311,
    "c": 0.11322,
    "h": 318
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#3A0847
secondary
#398526
accent
#F6325A
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A0847

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

Preview Lab → · Contrast checker → · Palette generator →

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