#392172#392172

#392172 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.131 H 291.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#392172
RGBrgb(57, 33, 114)
HSLhsl(258, 55%, 29%)
HSVhsv(258, 71%, 45%)
CMYKcmyk(50%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.72, 32.35, -42.78)
CIE-LCHlch(20.72, 53.63, 307.10°)
OKLaboklab(33.07% 0.0473 -0.1226)
OKLCHoklch(33.07% 0.131 291.1)
XYZxyz(5.2676, 3.1723, 16.2511)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392172 #5A7221
analogous
#213272 #392172 #622172
triadic
#392172 #723921 #217239
tetradic
#392172 #722132 #5A7221 #217262
square
#392172 #722132 #5A7221 #217262
split-complementary
#392172 #726221 #327221
monochromatic
#0C0718 #211343 #392172 #512FA1 #6C44C9

Accessibility & contrast

On white

12.85
#392172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #392172
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392172#FFFFFF#000000##FFFFFF
##3921721.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#273546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392172;
/* rgb */ color: rgb(57, 33, 114);
/* oklch */ color: oklch(33.1% 0.131 291.1);
Tailwind
colors: {
  custom: {
    50: '#755e9b',
    500: '#392172',
    950: '#000000',
  },
}
SCSS
$custom: #392172;
$custom-light: #755e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#392172",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 257.778,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33067,
    "c": 0.13137,
    "h": 291.1
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#392172
secondary
#8AA549
accent
#DE49B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392172

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

Preview Lab → · Contrast checker → · Palette generator →

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