#3A1247#3A1247

#3A1247 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.100 H 316.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#3A1247
RGBrgb(58, 18, 71)
HSLhsl(285, 60%, 17%)
HSVhsv(285, 75%, 28%)
CMYKcmyk(18.3%, 74.6%, 0%, 72.2%)
CIE-LABlab(14.33, 29.00, -24.41)
CIE-LCHlch(14.33, 37.91, 319.91°)
OKLaboklab(27.41% 0.0728 -0.0685)
OKLCHoklch(27.41% 0.1 316.8)
XYZxyz(3.0984, 1.7872, 6.1418)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1247 #1F4712
analogous
#1F1247 #3A1247 #47123A
triadic
#3A1247 #473A12 #12473A
tetradic
#3A1247 #471F12 #1F4712 #123A47
square
#3A1247 #471F12 #1F4712 #123A47
split-complementary
#3A1247 #3A4712 #12471F
monochromatic
#140618 #140618 #3A1247 #621E78 #8A2BA9

Accessibility & contrast

On white

15.47
#3A1247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3A1247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1247
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1247#FFFFFF#000000##FFFFFF
##3A12471.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#132546
Tritanopia (blue-blind)
#391C2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a1247;
/* rgb */ color: rgb(58, 18, 71);
/* oklch */ color: oklch(27.4% 0.100 316.8);
Tailwind
colors: {
  custom: {
    50: '#72537a',
    500: '#3a1247',
    950: '#000000',
  },
}
SCSS
$custom: #3a1247;
$custom-light: #72537a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1247",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 285.283,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27408,
    "c": 0.1,
    "h": 316.8
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#3A1247
secondary
#478035
accent
#E3456C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080309
muted
#7B787B

Preview Lab

Preview with #3A1247

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

Preview Lab → · Contrast checker → · Palette generator →

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