#391A97#391A97

#391A97 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.184 H 283.4°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#391A97
RGBrgb(57, 26, 151)
HSLhsl(255, 71%, 35%)
HSVhsv(255, 83%, 59%)
CMYKcmyk(62.3%, 82.8%, 0%, 40.8%)
CIE-LABlab(23.14, 47.07, -62.09)
CIE-LCHlch(23.14, 77.91, 307.17°)
OKLaboklab(35.89% 0.0427 -0.179)
OKLCHoklch(35.89% 0.184 283.4)
XYZxyz(7.6409, 3.8425, 29.6112)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391A97 #78971A
analogous
#1A3A97 #391A97 #781A97
triadic
#391A97 #97391A #1A9739
tetradic
#391A97 #971A3A #78971A #1A9778
square
#391A97 #971A3A #78971A #1A9778
split-complementary
#391A97 #97781A #3A971A
monochromatic
#12082F #251163 #391A97 #4D23CB #704BE0

Accessibility & contrast

On white

11.87
#391A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#391A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391A97
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391A97#FFFFFF#000000##FFFFFF
##391A971.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #391a97;
/* rgb */ color: rgb(57, 26, 151);
/* oklch */ color: oklch(35.9% 0.184 283.4);
Tailwind
colors: {
  custom: {
    50: '#7c5cb7',
    500: '#391a97',
    950: '#000000',
  },
}
SCSS
$custom: #391a97;
$custom-light: #7c5cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#391a97",
  "rgb": {
    "r": 57,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 254.88,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35886,
    "c": 0.18406,
    "h": 283.4
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#391A97
secondary
#A4C24B
accent
#ED3AC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #391A97

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

Preview Lab → · Contrast checker → · Palette generator →

#391A97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva