#392171#392171

#392171 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.130 H 291.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#392171
RGBrgb(57, 33, 113)
HSLhsl(258, 55%, 29%)
HSVhsv(258, 71%, 44%)
CMYKcmyk(49.6%, 70.8%, 0%, 55.7%)
CIE-LABlab(20.63, 32.04, -42.28)
CIE-LCHlch(20.63, 53.05, 307.16°)
OKLaboklab(32.98% 0.0474 -0.1211)
OKLCHoklch(32.98% 0.13 291.4)
XYZxyz(5.2110, 3.1496, 15.9530)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392171 #597121
analogous
#213171 #392171 #612171
triadic
#392171 #713921 #217139
tetradic
#392171 #712131 #597121 #217161
square
#392171 #712131 #597121 #217161
split-complementary
#392171 #716121 #317121
monochromatic
#0C0718 #211342 #392171 #512FA0 #6C44C8

Accessibility & contrast

On white

12.88
#392171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#392171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392171
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392171#FFFFFF#000000##FFFFFF
##3921711.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#273546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392171;
/* rgb */ color: rgb(57, 33, 113);
/* oklch */ color: oklch(33.0% 0.130 291.4);
Tailwind
colors: {
  custom: {
    50: '#755e9a',
    500: '#392171',
    950: '#000000',
  },
}
SCSS
$custom: #392171;
$custom-light: #755e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#392171",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 258,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32976,
    "c": 0.13005,
    "h": 291.4
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#392171
secondary
#89A549
accent
#DE4AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392171

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

Preview Lab → · Contrast checker → · Palette generator →

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