#391566#391566

#391566 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.132 H 298.2°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#391566
RGBrgb(57, 21, 102)
HSLhsl(267, 66%, 24%)
HSVhsv(267, 79%, 40%)
CMYKcmyk(44.1%, 79.4%, 0%, 60%)
CIE-LABlab(17.30, 35.36, -40.55)
CIE-LCHlch(17.30, 53.80, 311.09°)
OKLaboklab(30.3% 0.0623 -0.116)
OKLCHoklch(30.3% 0.132 298.2)
XYZxyz(4.3532, 2.3654, 12.7950)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391566 #426615
analogous
#151966 #391566 #621566
triadic
#391566 #663915 #156639
tetradic
#391566 #661519 #426615 #156662
square
#391566 #661519 #426615 #156662
split-complementary
#391566 #666215 #196615
monochromatic
#0E0519 #1D0B33 #391566 #551F99 #722ACC

Accessibility & contrast

On white

14.26
#391566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#391566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391566
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391566#FFFFFF#000000##FFFFFF
##3915661.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#2E2A3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #391566;
/* rgb */ color: rgb(57, 21, 102);
/* oklch */ color: oklch(30.3% 0.132 298.2);
Tailwind
colors: {
  custom: {
    50: '#745792',
    500: '#391566',
    950: '#000000',
  },
}
SCSS
$custom: #391566;
$custom-light: #745792;
$custom-dark: #000000;
JSON
{
  "hex": "#391566",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 266.667,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30299,
    "c": 0.13164,
    "h": 298.2
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#391566
secondary
#719D3A
accent
#E93F9D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #391566

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

Preview Lab → · Contrast checker → · Palette generator →

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