#392178#392178

#392178 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.139 H 289.4°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#392178
RGBrgb(57, 33, 120)
HSLhsl(257, 57%, 30%)
HSVhsv(257, 73%, 47%)
CMYKcmyk(52.5%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.26, 34.20, -45.75)
CIE-LCHlch(21.26, 57.12, 306.78°)
OKLaboklab(33.62% 0.0461 -0.1313)
OKLCHoklch(33.62% 0.139 289.4)
XYZxyz(5.6204, 3.3134, 18.1091)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392178 #607821
analogous
#213478 #392178 #652178
triadic
#392178 #783921 #217839
tetradic
#392178 #782134 #607821 #217865
square
#392178 #782134 #607821 #217865
split-complementary
#392178 #786521 #347821
monochromatic
#0B0718 #221448 #392178 #502EA8 #6C47CC

Accessibility & contrast

On white

12.63
#392178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#392178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392178
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392178#FFFFFF#000000##FFFFFF
##3921781.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#23374A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #392178;
/* rgb */ color: rgb(57, 33, 120);
/* oklch */ color: oklch(33.6% 0.139 289.4);
Tailwind
colors: {
  custom: {
    50: '#765ea0',
    500: '#392178',
    950: '#000000',
  },
}
SCSS
$custom: #392178;
$custom-light: #765ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#392178",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 256.552,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33617,
    "c": 0.13918,
    "h": 289.4
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#392178
secondary
#90AB4A
accent
#E048B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #392178

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

Preview Lab → · Contrast checker → · Palette generator →

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