#391978#391978

#391978 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.149 H 291.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#391978
RGBrgb(57, 25, 120)
HSLhsl(260, 66%, 28%)
HSVhsv(260, 79%, 47%)
CMYKcmyk(52.5%, 79.2%, 0%, 52.9%)
CIE-LABlab(19.72, 38.52, -48.26)
CIE-LCHlch(19.72, 61.75, 308.59°)
OKLaboklab(32.53% 0.0535 -0.1386)
OKLCHoklch(32.53% 0.149 291.1)
XYZxyz(5.4242, 2.9210, 18.0437)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391978 #587819
analogous
#192878 #391978 #681978
triadic
#391978 #783919 #197839
tetradic
#391978 #781928 #587819 #197868
square
#391978 #781928 #587819 #197868
split-complementary
#391978 #786819 #287819
monochromatic
#0C0519 #210E45 #391978 #5124AB #6C36D5

Accessibility & contrast

On white

13.26
#391978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #391978
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391978#FFFFFF#000000##FFFFFF
##3919781.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#233348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #391978;
/* rgb */ color: rgb(57, 25, 120);
/* oklch */ color: oklch(32.5% 0.149 291.1);
Tailwind
colors: {
  custom: {
    50: '#775aa0',
    500: '#391978',
    950: '#000000',
  },
}
SCSS
$custom: #391978;
$custom-light: #775aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#391978",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 260.211,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.14859,
    "h": 291.1
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#391978
secondary
#88AD40
accent
#E83FAF
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #391978

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

Preview Lab → · Contrast checker → · Palette generator →

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