#3F1147#3F1147

#3F1147 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.104 H 321.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#3F1147
RGBrgb(63, 17, 71)
HSLhsl(291, 61%, 17%)
HSVhsv(291, 76%, 28%)
CMYKcmyk(11.3%, 76.1%, 0%, 72.2%)
CIE-LABlab(15.02, 30.83, -23.25)
CIE-LCHlch(15.02, 38.61, 322.97°)
OKLaboklab(28.08% 0.0813 -0.0649)
OKLCHoklch(28.08% 0.104 321.4)
XYZxyz(3.3876, 1.9128, 6.1508)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F1147 #194711
analogous
#241147 #3F1147 #471134
triadic
#3F1147 #473F11 #11473F
tetradic
#3F1147 #472411 #194711 #113447
square
#3F1147 #472411 #194711 #113447
split-complementary
#3F1147 #344711 #114724
monochromatic
#160619 #160619 #3F1147 #6B1D78 #9729AA

Accessibility & contrast

On white

15.19
#3F1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3F1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F1147
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F1147#FFFFFF#000000##FFFFFF
##3F11471.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022249
Deuteranopia (green-blind)
#172746
Tritanopia (blue-blind)
#401A2A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3f1147;
/* rgb */ color: rgb(63, 17, 71);
/* oklch */ color: oklch(28.1% 0.104 321.4);
Tailwind
colors: {
  custom: {
    50: '#76547a',
    500: '#3f1147',
    950: '#000000',
  },
}
SCSS
$custom: #3f1147;
$custom-light: #76547a;
$custom-dark: #000000;
JSON
{
  "hex": "#3f1147",
  "rgb": {
    "r": 63,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 291.111,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28083,
    "c": 0.10403,
    "h": 321.4
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#3F1147
secondary
#3F8133
accent
#E4435B
background
#F7F4F7
surface
#EDE8ED
border
#C8C4C8
text
#090309
muted
#7B787B

Preview Lab

Preview with #3F1147

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

Preview Lab → · Contrast checker → · Palette generator →

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