#391152#391152

#391152 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.113 H 308.9°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#391152
RGBrgb(57, 17, 82)
HSLhsl(277, 66%, 19%)
HSVhsv(277, 79%, 32%)
CMYKcmyk(30.5%, 79.3%, 0%, 67.8%)
CIE-LABlab(14.84, 31.97, -31.16)
CIE-LCHlch(14.84, 44.64, 315.73°)
OKLaboklab(28.01% 0.0712 -0.0883)
OKLCHoklch(28.01% 0.113 308.9)
XYZxyz(3.4105, 1.8800, 8.1642)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391152 #2A5211
analogous
#191152 #391152 #52114B
triadic
#391152 #523911 #115239
tetradic
#391152 #521911 #2A5211 #114B52
square
#391152 #521911 #2A5211 #114B52
split-complementary
#391152 #4B5211 #115219
monochromatic
#120519 #16061F #391152 #5C1C85 #7F26B7

Accessibility & contrast

On white

15.26
#391152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#391152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391152
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391152#FFFFFF#000000##FFFFFF
##3911521.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#022651
Tritanopia (blue-blind)
#352030
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #391152;
/* rgb */ color: rgb(57, 17, 82);
/* oklch */ color: oklch(28.0% 0.113 308.9);
Tailwind
colors: {
  custom: {
    50: '#725383',
    500: '#391152',
    950: '#000000',
  },
}
SCSS
$custom: #391152;
$custom-light: #725383;
$custom-dark: #000000;
JSON
{
  "hex": "#391152",
  "rgb": {
    "r": 57,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 276.923,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28014,
    "c": 0.11346,
    "h": 308.9
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#391152
secondary
#558B34
accent
#E93F80
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #391152

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

Preview Lab → · Contrast checker → · Palette generator →

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