#391871#391871

#391871 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.141 H 293.5°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#391871
RGBrgb(57, 24, 113)
HSLhsl(262, 65%, 27%)
HSVhsv(262, 79%, 44%)
CMYKcmyk(49.6%, 78.8%, 0%, 55.7%)
CIE-LABlab(18.87, 36.99, -45.16)
CIE-LCHlch(18.87, 58.38, 309.32°)
OKLaboklab(31.72% 0.0564 -0.1295)
OKLCHoklch(31.72% 0.141 293.5)
XYZxyz(4.9938, 2.7152, 15.8806)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#391871 #507118
analogous
#182471 #391871 #661871
triadic
#391871 #713918 #187139
tetradic
#391871 #711824 #507118 #187166
square
#391871 #711824 #507118 #187166
split-complementary
#391871 #716618 #247118
monochromatic
#0D0519 #200D3F #391871 #5223A3 #6D30D3

Accessibility & contrast

On white

13.61
#391871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#391871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #391871
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##391871#FFFFFF#000000##FFFFFF
##3918711.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#283043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #391871;
/* rgb */ color: rgb(57, 24, 113);
/* oklch */ color: oklch(31.7% 0.141 293.5);
Tailwind
colors: {
  custom: {
    50: '#76599b',
    500: '#391871',
    950: '#000000',
  },
}
SCSS
$custom: #391871;
$custom-light: #76599b;
$custom-dark: #000000;
JSON
{
  "hex": "#391871",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 262.247,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31721,
    "c": 0.1413,
    "h": 293.5
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#391871
secondary
#80A63E
accent
#E840AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #391871

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

Preview Lab → · Contrast checker → · Palette generator →

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