#391147#391147

#391147 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.101 H 316.0°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#391147
RGBrgb(57, 17, 71)
HSLhsl(284, 61%, 17%)
HSVhsv(284, 76%, 28%)
CMYKcmyk(19.7%, 76.1%, 0%, 72.2%)
CIE-LABlab(13.98, 29.24, -24.98)
CIE-LCHlch(13.98, 38.46, 319.49°)
OKLaboklab(27.12% 0.0727 -0.0702)
OKLCHoklch(27.12% 0.101 316)
XYZxyz(3.0249, 1.7258, 6.1338)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391147 #1F4711
analogous
#1E1147 #391147 #47113A
triadic
#391147 #473911 #114739
tetradic
#391147 #471E11 #1F4711 #113A47
square
#391147 #471E11 #1F4711 #113A47
split-complementary
#391147 #3A4711 #11471E
monochromatic
#140619 #140619 #391147 #611D78 #8829AA

Accessibility & contrast

On white

15.61
#391147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#391147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391147
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391147#FFFFFF#000000##FFFFFF
##3911471.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#112546
Tritanopia (blue-blind)
#381C2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #391147;
/* rgb */ color: rgb(57, 17, 71);
/* oklch */ color: oklch(27.1% 0.101 316.0);
Tailwind
colors: {
  custom: {
    50: '#72537a',
    500: '#391147',
    950: '#000000',
  },
}
SCSS
$custom: #391147;
$custom-light: #72537a;
$custom-dark: #000000;
JSON
{
  "hex": "#391147",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 284.444,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.27121,
    "c": 0.10106,
    "h": 316
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#391147
secondary
#478133
accent
#E4436D
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #391147

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

Preview Lab → · Contrast checker → · Palette generator →

#391147 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva