#392078#392078

#392078 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.140 H 289.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#392078
RGBrgb(57, 32, 120)
HSLhsl(257, 58%, 30%)
HSVhsv(257, 73%, 47%)
CMYKcmyk(52.5%, 73.3%, 0%, 52.9%)
CIE-LABlab(21.05, 34.77, -46.09)
CIE-LCHlch(21.05, 57.73, 307.04°)
OKLaboklab(33.47% 0.0471 -0.1323)
OKLCHoklch(33.47% 0.14 289.6)
XYZxyz(5.5930, 3.2587, 18.0999)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392078 #5F7820
analogous
#203378 #392078 #652078
triadic
#392078 #783920 #207839
tetradic
#392078 #782033 #5F7820 #207865
square
#392078 #782033 #5F7820 #207865
split-complementary
#392078 #786520 #337820
monochromatic
#0B0618 #221348 #392078 #502DA8 #6C45CD

Accessibility & contrast

On white

12.71
#392078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#392078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392078
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392078#FFFFFF#000000##FFFFFF
##3920781.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#233749
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #392078;
/* rgb */ color: rgb(57, 32, 120);
/* oklch */ color: oklch(33.5% 0.140 289.6);
Tailwind
colors: {
  custom: {
    50: '#765ea0',
    500: '#392078',
    950: '#000000',
  },
}
SCSS
$custom: #392078;
$custom-light: #765ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#392078",
  "rgb": {
    "r": 57,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 257.045,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3347,
    "c": 0.14044,
    "h": 289.6
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#392078
secondary
#8FAB48
accent
#E147B5
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #392078

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

Preview Lab → · Contrast checker → · Palette generator →

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