#391171#391171

#391171 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.148 H 294.8°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#391171
RGBrgb(57, 17, 113)
HSLhsl(265, 74%, 25%)
HSVhsv(265, 85%, 44%)
CMYKcmyk(49.6%, 85%, 0%, 55.7%)
CIE-LABlab(17.75, 40.20, -46.99)
CIE-LCHlch(17.75, 61.85, 310.55°)
OKLaboklab(30.94% 0.0622 -0.1348)
OKLCHoklch(30.94% 0.148 294.8)
XYZxyz(4.8676, 2.4629, 15.8385)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391171 #497111
analogous
#111971 #391171 #691171
triadic
#391171 #713911 #117139
tetradic
#391171 #711119 #497111 #117169
square
#391171 #711119 #497111 #117169
split-complementary
#391171 #716911 #197111
monochromatic
#0D041B #1E093C #391171 #5419A6 #6F21DB

Accessibility & contrast

On white

14.07
#391171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#391171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391171
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391171#FFFFFF#000000##FFFFFF
##3911711.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#282D42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #391171;
/* rgb */ color: rgb(57, 17, 113);
/* oklch */ color: oklch(30.9% 0.148 294.8);
Tailwind
colors: {
  custom: {
    50: '#76559b',
    500: '#391171',
    950: '#000000',
  },
}
SCSS
$custom: #391171;
$custom-light: #76559b;
$custom-dark: #000000;
JSON
{
  "hex": "#391171",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 265,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.14848,
    "h": 294.8
  },
  "luminance": 0.02463
}

Semantic roles & 50–950 ramp

primary
#391171
secondary
#78A836
accent
#F137A3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391171

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

Preview Lab → · Contrast checker → · Palette generator →

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