#392173#392173

#392173 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.133 H 290.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#392173
RGBrgb(57, 33, 115)
HSLhsl(258, 55%, 29%)
HSVhsv(258, 71%, 45%)
CMYKcmyk(50.4%, 71.3%, 0%, 54.9%)
CIE-LABlab(20.81, 32.66, -43.28)
CIE-LCHlch(20.81, 54.22, 307.04°)
OKLaboklab(33.16% 0.0471 -0.124)
OKLCHoklch(33.16% 0.133 290.8)
XYZxyz(5.3248, 3.1952, 16.5525)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392173 #5B7321
analogous
#213273 #392173 #622173
triadic
#392173 #733921 #217339
tetradic
#392173 #732132 #5B7321 #217362
square
#392173 #732132 #5B7321 #217362
split-complementary
#392173 #736221 #327321
monochromatic
#0C0718 #211343 #392173 #512FA3 #6C45CA

Accessibility & contrast

On white

12.81
#392173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#392173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392173
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392173#FFFFFF#000000##FFFFFF
##3921731.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#263647
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #392173;
/* rgb */ color: rgb(57, 33, 115);
/* oklch */ color: oklch(33.2% 0.133 290.8);
Tailwind
colors: {
  custom: {
    50: '#755e9c',
    500: '#392173',
    950: '#000000',
  },
}
SCSS
$custom: #392173;
$custom-light: #755e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#392173",
  "rgb": {
    "r": 57,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 257.561,
    "s": 55.405,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33157,
    "c": 0.13268,
    "h": 290.8
  },
  "luminance": 0.03195
}

Semantic roles & 50–950 ramp

primary
#392173
secondary
#8BA649
accent
#DF49B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #392173

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

Preview Lab → · Contrast checker → · Palette generator →

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