#391878#391878

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

Color values

HEX#391878
RGBrgb(57, 24, 120)
HSLhsl(261, 67%, 28%)
HSVhsv(261, 80%, 47%)
CMYKcmyk(52.5%, 80%, 0%, 52.9%)
CIE-LABlab(19.55, 39.01, -48.54)
CIE-LCHlch(19.55, 62.27, 308.79°)
OKLaboklab(32.41% 0.0544 -0.1394)
OKLCHoklch(32.41% 0.15 291.3)
XYZxyz(5.4032, 2.8790, 18.0367)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391878 #577818
analogous
#182778 #391878 #691878
triadic
#391878 #783918 #187839
tetradic
#391878 #781827 #577818 #187869
square
#391878 #781827 #577818 #187869
split-complementary
#391878 #786918 #277818
monochromatic
#0C051A #210E45 #391878 #5122AB #6C34D6

Accessibility & contrast

On white

13.33
#391878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#391878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391878
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391878#FFFFFF#000000##FFFFFF
##3918781.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #391878;
/* rgb */ color: rgb(57, 24, 120);
/* oklch */ color: oklch(32.4% 0.150 291.3);
Tailwind
colors: {
  custom: {
    50: '#7759a0',
    500: '#391878',
    950: '#000000',
  },
}
SCSS
$custom: #391878;
$custom-light: #7759a0;
$custom-dark: #000000;
JSON
{
  "hex": "#391878",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 260.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32412,
    "c": 0.14966,
    "h": 291.3
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#391878
secondary
#87AD3F
accent
#EA3EAF
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391878

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

Preview Lab → · Contrast checker → · Palette generator →

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