#381147#381147

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

Color values

HEX#381147
RGBrgb(56, 17, 71)
HSLhsl(283, 61%, 17%)
HSVhsv(283, 76%, 28%)
CMYKcmyk(21.1%, 76.1%, 0%, 72.2%)
CIE-LABlab(13.81, 28.98, -25.27)
CIE-LCHlch(13.81, 38.45, 318.92°)
OKLaboklab(26.96% 0.0712 -0.0711)
OKLCHoklch(26.96% 0.101 315)
XYZxyz(2.9685, 1.6967, 6.1311)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381147 #204711
analogous
#1D1147 #381147 #47113B
triadic
#381147 #473811 #114738
tetradic
#381147 #471D11 #204711 #113B47
square
#381147 #471D11 #204711 #113B47
split-complementary
#381147 #3B4711 #11471D
monochromatic
#130619 #130619 #381147 #5F1D78 #8629AA

Accessibility & contrast

On white

15.68
#381147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#381147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381147
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381147#FFFFFF#000000##FFFFFF
##3811471.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#102446
Tritanopia (blue-blind)
#371C2A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #381147;
/* rgb */ color: rgb(56, 17, 71);
/* oklch */ color: oklch(27.0% 0.101 315.0);
Tailwind
colors: {
  custom: {
    50: '#71537a',
    500: '#381147',
    950: '#000000',
  },
}
SCSS
$custom: #381147;
$custom-light: #71537a;
$custom-dark: #000000;
JSON
{
  "hex": "#381147",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 283.333,
    "s": 61.364,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26964,
    "c": 0.1006,
    "h": 315
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#381147
secondary
#498133
accent
#E44370
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #381147

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

Preview Lab → · Contrast checker → · Palette generator →

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