#381886#381886

#381886 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.166 H 286.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#381886
RGBrgb(56, 24, 134)
HSLhsl(257, 70%, 31%)
HSVhsv(257, 82%, 53%)
CMYKcmyk(58.2%, 82.1%, 0%, 47.5%)
CIE-LABlab(20.88, 42.93, -55.24)
CIE-LCHlch(20.88, 69.96, 307.85°)
OKLaboklab(33.75% 0.0482 -0.1591)
OKLCHoklch(33.75% 0.166 286.8)
XYZxyz(6.2593, 3.2149, 22.8403)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381886 #668618
analogous
#182F86 #381886 #6F1886
triadic
#381886 #863818 #188638
tetradic
#381886 #86182F #668618 #18866F
square
#381886 #86182F #668618 #18866F
split-complementary
#381886 #866F18 #2F8618
monochromatic
#0D051E #220F52 #381886 #4E21BA #6B3CDC

Accessibility & contrast

On white

12.78
#381886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381886
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381886#FFFFFF#000000##FFFFFF
##3818861.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#13394F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381886;
/* rgb */ color: rgb(56, 24, 134);
/* oklch */ color: oklch(33.7% 0.166 286.8);
Tailwind
colors: {
  custom: {
    50: '#795aaa',
    500: '#381886',
    950: '#000000',
  },
}
SCSS
$custom: #381886;
$custom-light: #795aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#381886",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 257.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33749,
    "c": 0.16619,
    "h": 286.8
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#381886
secondary
#96BA40
accent
#EC3BB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381886

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

Preview Lab → · Contrast checker → · Palette generator →

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