#392478#392478

#392478 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.135 H 288.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#392478
RGBrgb(57, 36, 120)
HSLhsl(255, 54%, 31%)
HSVhsv(255, 70%, 47%)
CMYKcmyk(52.5%, 70%, 0%, 52.9%)
CIE-LABlab(21.90, 32.44, -44.70)
CIE-LCHlch(21.90, 55.23, 305.97°)
OKLaboklab(34.08% 0.0431 -0.1282)
OKLCHoklch(34.08% 0.135 288.6)
XYZxyz(5.7074, 3.4874, 18.1381)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392478 #637824
analogous
#243978 #392478 #632478
triadic
#392478 #783924 #247839
tetradic
#392478 #782439 #637824 #247863
square
#392478 #782439 #637824 #247863
split-complementary
#392478 #786324 #397824
monochromatic
#0C081A #231649 #392478 #4F32A7 #6C4DCA

Accessibility & contrast

On white

12.37
#392478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#392478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392478
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392478#FFFFFF#000000##FFFFFF
##3924781.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003276
Tritanopia (blue-blind)
#23394B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #392478;
/* rgb */ color: rgb(57, 36, 120);
/* oklch */ color: oklch(34.1% 0.135 288.6);
Tailwind
colors: {
  custom: {
    50: '#7660a0',
    500: '#392478',
    950: '#000000',
  },
}
SCSS
$custom: #392478;
$custom-light: #7660a0;
$custom-dark: #000000;
JSON
{
  "hex": "#392478",
  "rgb": {
    "r": 57,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 255,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34076,
    "c": 0.13529,
    "h": 288.6
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#392478
secondary
#93AB4D
accent
#DD4BB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050F
muted
#7B797E

Preview Lab

Preview with #392478

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

Preview Lab → · Contrast checker → · Palette generator →

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