#381246#381246

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

Color values

HEX#381246
RGBrgb(56, 18, 70)
HSLhsl(284, 59%, 17%)
HSVhsv(284, 74%, 27%)
CMYKcmyk(20%, 74.3%, 0%, 72.5%)
CIE-LABlab(13.92, 28.22, -24.39)
CIE-LCHlch(13.92, 37.30, 319.16°)
OKLaboklab(27.02% 0.07 -0.0685)
OKLCHoklch(27.02% 0.098 315.6)
XYZxyz(2.9525, 1.7157, 5.9688)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381246 #204612
analogous
#1E1246 #381246 #46123A
triadic
#381246 #463812 #124638
tetradic
#381246 #461E12 #204612 #123A46
square
#381246 #461E12 #204612 #123A46
split-complementary
#381246 #3A4612 #12461E
monochromatic
#130618 #130618 #381246 #5F1F77 #862BA7

Accessibility & contrast

On white

15.63
#381246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381246
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381246#FFFFFF#000000##FFFFFF
##3812461.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381246;
/* rgb */ color: rgb(56, 18, 70);
/* oklch */ color: oklch(27.0% 0.098 315.6);
Tailwind
colors: {
  custom: {
    50: '#71537a',
    500: '#381246',
    950: '#000000',
  },
}
SCSS
$custom: #381246;
$custom-light: #71537a;
$custom-dark: #000000;
JSON
{
  "hex": "#381246",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 283.846,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.2702,
    "c": 0.09793,
    "h": 315.6
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#381246
secondary
#497F35
accent
#E24670
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #381246

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

Preview Lab → · Contrast checker → · Palette generator →

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