#392371#392371

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

Color values

HEX#392371
RGBrgb(57, 35, 113)
HSLhsl(257, 53%, 29%)
HSVhsv(257, 69%, 44%)
CMYKcmyk(49.6%, 69%, 0%, 55.7%)
CIE-LABlab(21.07, 30.85, -41.56)
CIE-LCHlch(21.07, 51.76, 306.58°)
OKLaboklab(33.29% 0.0452 -0.119)
OKLCHoklch(33.29% 0.127 290.8)
XYZxyz(5.2682, 3.2640, 15.9720)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392371 #5B7123
analogous
#233471 #392371 #602371
triadic
#392371 #713923 #237139
tetradic
#392371 #712334 #5B7123 #237160
square
#392371 #712334 #5B7123 #237160
split-complementary
#392371 #716023 #347123
monochromatic
#0C0717 #211542 #392371 #5131A0 #6C48C6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##392371#FFFFFF#000000##FFFFFF
##3923711.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)
#003473
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#273646
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #392371;
/* rgb */ color: rgb(57, 35, 113);
/* oklch */ color: oklch(33.3% 0.127 290.8);
Tailwind
colors: {
  custom: {
    50: '#755f9a',
    500: '#392371',
    950: '#000000',
  },
}
SCSS
$custom: #392371;
$custom-light: #755f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#392371",
  "rgb": {
    "r": 57,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 256.923,
    "s": 52.703,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33291,
    "c": 0.12731,
    "h": 290.8
  },
  "luminance": 0.03264
}

Semantic roles & 50–950 ramp

primary
#392371
secondary
#8BA44C
accent
#DC4CB3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #392371

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

Preview Lab → · Contrast checker → · Palette generator →

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