#3A1147#3A1147

#3A1147 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.3% C 0.102 H 316.9°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#3A1147
RGBrgb(58, 17, 71)
HSLhsl(286, 61%, 17%)
HSVhsv(286, 76%, 28%)
CMYKcmyk(18.3%, 76.1%, 0%, 72.2%)
CIE-LABlab(14.15, 29.50, -24.70)
CIE-LCHlch(14.15, 38.48, 320.06°)
OKLaboklab(27.28% 0.0741 -0.0693)
OKLCHoklch(27.28% 0.102 316.9)
XYZxyz(3.0825, 1.7555, 6.1365)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1147 #1E4711
analogous
#1F1147 #3A1147 #471139
triadic
#3A1147 #473A11 #11473A
tetradic
#3A1147 #471F11 #1E4711 #113947
square
#3A1147 #471F11 #1E4711 #113947
split-complementary
#3A1147 #394711 #11471F
monochromatic
#140619 #140619 #3A1147 #621D78 #8B29AA

Accessibility & contrast

On white

15.54
#3A1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1147
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1147#FFFFFF#000000##FFFFFF
##3A11471.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#122546
Tritanopia (blue-blind)
#391B2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a1147;
/* rgb */ color: rgb(58, 17, 71);
/* oklch */ color: oklch(27.3% 0.102 316.9);
Tailwind
colors: {
  custom: {
    50: '#72537a',
    500: '#3a1147',
    950: '#000000',
  },
}
SCSS
$custom: #3a1147;
$custom-light: #72537a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1147",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 285.556,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27278,
    "c": 0.10152,
    "h": 316.9
  },
  "luminance": 0.01755
}

Semantic roles & 50–950 ramp

primary
#3A1147
secondary
#468133
accent
#E4436A
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A1147

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

Preview Lab → · Contrast checker → · Palette generator →

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