#381247#381247

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

Color values

HEX#381247
RGBrgb(56, 18, 71)
HSLhsl(283, 60%, 17%)
HSVhsv(283, 75%, 28%)
CMYKcmyk(21.1%, 74.6%, 0%, 72.2%)
CIE-LABlab(13.99, 28.46, -24.97)
CIE-LCHlch(13.99, 37.86, 318.74°)
OKLaboklab(27.1% 0.0699 -0.0702)
OKLCHoklch(27.1% 0.099 314.9)
XYZxyz(2.9843, 1.7284, 6.1364)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381247 #214712
analogous
#1E1247 #381247 #47123C
triadic
#381247 #473812 #124738
tetradic
#381247 #471E12 #214712 #123C47
square
#381247 #471E12 #214712 #123C47
split-complementary
#381247 #3C4712 #12471E
monochromatic
#130618 #130618 #381247 #5F1E78 #852BA9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381247#FFFFFF#000000##FFFFFF
##3812471.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)
#102546
Tritanopia (blue-blind)
#371C2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #381247;
/* rgb */ color: rgb(56, 18, 71);
/* oklch */ color: oklch(27.1% 0.099 314.9);
Tailwind
colors: {
  custom: {
    50: '#71537a',
    500: '#381247',
    950: '#000000',
  },
}
SCSS
$custom: #381247;
$custom-light: #71537a;
$custom-dark: #000000;
JSON
{
  "hex": "#381247",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 71
  },
  "hsl": {
    "h": 283.019,
    "s": 59.551,
    "l": 17.451
  },
  "oklch": {
    "l": 0.27097,
    "c": 0.09907,
    "h": 314.9
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#381247
secondary
#4A8035
accent
#E34572
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #381247

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

Preview Lab → · Contrast checker → · Palette generator →

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