#392887#392887

#392887 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.150 H 284.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#392887
RGBrgb(57, 40, 135)
HSLhsl(251, 54%, 34%)
HSVhsv(251, 70%, 53%)
CMYKcmyk(57.8%, 70.4%, 0%, 47.1%)
CIE-LABlab(24.12, 34.83, -50.56)
CIE-LCHlch(24.12, 61.39, 304.57°)
OKLaboklab(36.09% 0.0367 -0.1454)
OKLCHoklch(36.09% 0.15 284.2)
XYZxyz(6.8180, 4.1363, 23.3561)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392887 #768728
analogous
#284787 #392887 #692887
triadic
#392887 #873928 #288739
tetradic
#392887 #872847 #768728 #288769
square
#392887 #872847 #768728 #288769
split-complementary
#392887 #876928 #478728
monochromatic
#110C29 #251A58 #392887 #4D36B6 #705BCE

Accessibility & contrast

On white

11.49
#392887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#392887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392887
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392887#FFFFFF#000000##FFFFFF
##3928871.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#134154
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #392887;
/* rgb */ color: rgb(57, 40, 135);
/* oklch */ color: oklch(36.1% 0.150 284.2);
Tailwind
colors: {
  custom: {
    50: '#7863ab',
    500: '#392887',
    950: '#000000',
  },
}
SCSS
$custom: #392887;
$custom-light: #7863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#392887",
  "rgb": {
    "r": 57,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 250.737,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36085,
    "c": 0.14999,
    "h": 284.2
  },
  "luminance": 0.04137
}

Semantic roles & 50–950 ramp

primary
#392887
secondary
#A3B457
accent
#DE4AC3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #392887

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

Preview Lab → · Contrast checker → · Palette generator →

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