#371578#371578

#371578 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.153 H 290.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#371578
RGBrgb(55, 21, 120)
HSLhsl(261, 70%, 28%)
HSVhsv(261, 83%, 47%)
CMYKcmyk(54.2%, 82.5%, 0%, 52.9%)
CIE-LABlab(18.82, 40.13, -49.76)
CIE-LCHlch(18.82, 63.92, 308.89°)
OKLaboklab(31.85% 0.0534 -0.143)
OKLCHoklch(31.85% 0.153 290.5)
XYZxyz(5.2329, 2.7044, 18.0119)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371578 #567815
analogous
#152478 #371578 #681578
triadic
#371578 #783715 #157837
tetradic
#371578 #781524 #567815 #157868
square
#371578 #781524 #567815 #157868
split-complementary
#371578 #786815 #247815
monochromatic
#0C051A #1F0C44 #371578 #4F1EAC #692DDA

Accessibility & contrast

On white

13.63
#371578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #371578
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371578#FFFFFF#000000##FFFFFF
##3715781.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#1F3247
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #371578;
/* rgb */ color: rgb(55, 21, 120);
/* oklch */ color: oklch(31.8% 0.153 290.5);
Tailwind
colors: {
  custom: {
    50: '#7657a0',
    500: '#371578',
    950: '#000000',
  },
}
SCSS
$custom: #371578;
$custom-light: #7657a0;
$custom-dark: #000000;
JSON
{
  "hex": "#371578",
  "rgb": {
    "r": 55,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 260.606,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31846,
    "c": 0.15268,
    "h": 290.5
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#371578
secondary
#86AE3B
accent
#ED3BB0
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #371578

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

Preview Lab → · Contrast checker → · Palette generator →

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