#381578#381578

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

Color values

HEX#381578
RGBrgb(56, 21, 120)
HSLhsl(261, 70%, 28%)
HSVhsv(261, 83%, 47%)
CMYKcmyk(53.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(18.94, 40.27, -49.55)
CIE-LCHlch(18.94, 63.85, 309.10°)
OKLaboklab(31.96% 0.0551 -0.1424)
OKLCHoklch(31.96% 0.153 291.1)
XYZxyz(5.2882, 2.7329, 18.0145)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381578 #557815
analogous
#152478 #381578 #691578
triadic
#381578 #783815 #157838
tetradic
#381578 #781524 #557815 #157869
square
#381578 #781524 #557815 #157869
split-complementary
#381578 #786915 #247815
monochromatic
#0C051A #200C44 #381578 #501EAC #6A2DDA

Accessibility & contrast

On white

13.58
#381578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381578
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381578#FFFFFF#000000##FFFFFF
##3815781.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#213247
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381578;
/* rgb */ color: rgb(56, 21, 120);
/* oklch */ color: oklch(32.0% 0.153 291.1);
Tailwind
colors: {
  custom: {
    50: '#7758a0',
    500: '#381578',
    950: '#000000',
  },
}
SCSS
$custom: #381578;
$custom-light: #7758a0;
$custom-dark: #000000;
JSON
{
  "hex": "#381578",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 261.212,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.15267,
    "h": 291.1
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#381578
secondary
#85AE3B
accent
#ED3BAE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #381578

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

Preview Lab → · Contrast checker → · Palette generator →

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