#381878#381878

#381878 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.150 H 290.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#381878
RGBrgb(56, 24, 120)
HSLhsl(260, 67%, 28%)
HSVhsv(260, 80%, 47%)
CMYKcmyk(53.3%, 80%, 0%, 52.9%)
CIE-LABlab(19.43, 38.85, -48.74)
CIE-LCHlch(19.43, 62.34, 308.56°)
OKLaboklab(32.3% 0.0527 -0.1401)
OKLCHoklch(32.3% 0.15 290.6)
XYZxyz(5.3467, 2.8499, 18.0340)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381878 #587818
analogous
#182878 #381878 #681878
triadic
#381878 #783818 #187838
tetradic
#381878 #781828 #587818 #187868
square
#381878 #781828 #587818 #187868
split-complementary
#381878 #786818 #287818
monochromatic
#0C051A #200E45 #381878 #5022AB #6A34D6

Accessibility & contrast

On white

13.38
#381878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381878
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381878#FFFFFF#000000##FFFFFF
##3818781.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#213347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381878;
/* rgb */ color: rgb(56, 24, 120);
/* oklch */ color: oklch(32.3% 0.150 290.6);
Tailwind
colors: {
  custom: {
    50: '#7659a0',
    500: '#381878',
    950: '#000000',
  },
}
SCSS
$custom: #381878;
$custom-light: #7659a0;
$custom-dark: #000000;
JSON
{
  "hex": "#381878",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 260,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32301,
    "c": 0.14966,
    "h": 290.6
  },
  "luminance": 0.0285
}

Semantic roles & 50–950 ramp

primary
#381878
secondary
#88AD3F
accent
#EA3EB0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #381878

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

Preview Lab → · Contrast checker → · Palette generator →

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