#391173#391173

#391173 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 294.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#391173
RGBrgb(57, 17, 115)
HSLhsl(264, 74%, 26%)
HSVhsv(264, 85%, 45%)
CMYKcmyk(50.4%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.96, 40.75, -47.95)
CIE-LCHlch(17.96, 62.93, 310.36°)
OKLaboklab(31.15% 0.0614 -0.1376)
OKLCHoklch(31.15% 0.151 294.1)
XYZxyz(4.9814, 2.5084, 16.4380)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391173 #4B7311
analogous
#111A73 #391173 #6A1173
triadic
#391173 #733911 #117339
tetradic
#391173 #73111A #4B7311 #11736A
square
#391173 #73111A #4B7311 #11736A
split-complementary
#391173 #736A11 #1A7311
monochromatic
#0D041B #1F093E #391173 #5319A8 #6E21DE

Accessibility & contrast

On white

13.98
#391173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#391173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391173
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391173#FFFFFF#000000##FFFFFF
##3911731.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D76
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#272E43
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #391173;
/* rgb */ color: rgb(57, 17, 115);
/* oklch */ color: oklch(31.1% 0.151 294.1);
Tailwind
colors: {
  custom: {
    50: '#77559c',
    500: '#391173',
    950: '#000000',
  },
}
SCSS
$custom: #391173;
$custom-light: #77559c;
$custom-dark: #000000;
JSON
{
  "hex": "#391173",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 264.49,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31149,
    "c": 0.15072,
    "h": 294.1
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#391173
secondary
#7BAA36
accent
#F137A5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #391173

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

Preview Lab → · Contrast checker → · Palette generator →

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