#391987#391987

#391987 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.166 H 287.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#391987
RGBrgb(57, 25, 135)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(57.8%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.26, 42.88, -55.25)
CIE-LCHlch(21.26, 69.94, 307.82°)
OKLaboklab(34.07% 0.0488 -0.1591)
OKLCHoklch(34.07% 0.166 287)
XYZxyz(6.4068, 3.3140, 23.2190)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391987 #678719
analogous
#193087 #391987 #701987
triadic
#391987 #873919 #198739
tetradic
#391987 #871930 #678719 #198770
square
#391987 #871930 #678719 #198770
split-complementary
#391987 #877019 #308719
monochromatic
#0D0620 #230F53 #391987 #4F23BB #6C3FDB

Accessibility & contrast

On white

12.63
#391987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#391987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391987
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391987#FFFFFF#000000##FFFFFF
##3919871.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#153950
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #391987;
/* rgb */ color: rgb(57, 25, 135);
/* oklch */ color: oklch(34.1% 0.166 287.0);
Tailwind
colors: {
  custom: {
    50: '#7a5bab',
    500: '#391987',
    950: '#000000',
  },
}
SCSS
$custom: #391987;
$custom-light: #7a5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#391987",
  "rgb": {
    "r": 57,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 257.455,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34067,
    "c": 0.16637,
    "h": 287
  },
  "luminance": 0.03314
}

Semantic roles & 50–950 ramp

primary
#391987
secondary
#97BA41
accent
#EC3CB9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #391987

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

Preview Lab → · Contrast checker → · Palette generator →

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