#391562#391562

#391562 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.127 H 299.9°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#391562
RGBrgb(57, 21, 98)
HSLhsl(268, 65%, 23%)
HSVhsv(268, 79%, 38%)
CMYKcmyk(41.8%, 78.6%, 0%, 61.6%)
CIE-LABlab(16.93, 34.26, -38.51)
CIE-LCHlch(16.93, 51.54, 311.65°)
OKLaboklab(29.93% 0.0633 -0.11)
OKLCHoklch(29.93% 0.127 299.9)
XYZxyz(4.1596, 2.2880, 11.7754)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391562 #3E6215
analogous
#151762 #391562 #5F1562
triadic
#391562 #623915 #156239
tetradic
#391562 #621517 #3E6215 #15625F
square
#391562 #621517 #3E6215 #15625F
split-complementary
#391562 #625F15 #176215
monochromatic
#0F0519 #1C0A30 #391562 #562094 #742BC7

Accessibility & contrast

On white

14.41
#391562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#391562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391562
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391562#FFFFFF#000000##FFFFFF
##3915621.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#2F293A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #391562;
/* rgb */ color: rgb(57, 21, 98);
/* oklch */ color: oklch(29.9% 0.127 299.9);
Tailwind
colors: {
  custom: {
    50: '#74568f',
    500: '#391562',
    950: '#000000',
  },
}
SCSS
$custom: #391562;
$custom-light: #74568f;
$custom-dark: #000000;
JSON
{
  "hex": "#391562",
  "rgb": {
    "r": 57,
    "g": 21,
    "b": 98
  },
  "hsl": {
    "h": 268.052,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29926,
    "c": 0.12692,
    "h": 299.9
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#391562
secondary
#6C993A
accent
#E84099
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #391562

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

Preview Lab → · Contrast checker → · Palette generator →

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