#392787#392787

#392787 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.151 H 284.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#392787
RGBrgb(57, 39, 135)
HSLhsl(251, 55%, 34%)
HSVhsv(251, 71%, 53%)
CMYKcmyk(57.8%, 71.1%, 0%, 47.1%)
CIE-LABlab(23.90, 35.43, -50.91)
CIE-LCHlch(23.90, 62.02, 304.83°)
OKLaboklab(35.93% 0.0376 -0.1465)
OKLCHoklch(35.93% 0.151 284.4)
XYZxyz(6.7847, 4.0698, 23.3450)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#392787 #758727
analogous
#274587 #392787 #692787
triadic
#392787 #873927 #278739
tetradic
#392787 #872745 #758727 #278769
square
#392787 #872745 #758727 #278769
split-complementary
#392787 #876927 #458727
monochromatic
#110C28 #251958 #392787 #4D35B6 #6F59CF

Accessibility & contrast

On white

11.58
#392787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#392787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #392787
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##392787#FFFFFF#000000##FFFFFF
##3927871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #392787;
/* rgb */ color: rgb(57, 39, 135);
/* oklch */ color: oklch(35.9% 0.151 284.4);
Tailwind
colors: {
  custom: {
    50: '#7863ab',
    500: '#392787',
    950: '#000000',
  },
}
SCSS
$custom: #392787;
$custom-light: #7863ab;
$custom-dark: #000000;
JSON
{
  "hex": "#392787",
  "rgb": {
    "r": 57,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 251.25,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3593,
    "c": 0.15121,
    "h": 284.4
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#392787
secondary
#A2B456
accent
#DF49C3
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #392787

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

Preview Lab → · Contrast checker → · Palette generator →

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