#382178#382178

#382178 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.139 H 288.7°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#382178
RGBrgb(56, 33, 120)
HSLhsl(256, 57%, 30%)
HSVhsv(256, 73%, 47%)
CMYKcmyk(53.3%, 72.5%, 0%, 52.9%)
CIE-LABlab(21.15, 34.02, -45.93)
CIE-LCHlch(21.15, 57.16, 306.52°)
OKLaboklab(33.51% 0.0446 -0.1319)
OKLCHoklch(33.51% 0.139 288.7)
XYZxyz(5.5639, 3.2843, 18.1064)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382178 #617821
analogous
#213578 #382178 #642178
triadic
#382178 #783821 #217838
tetradic
#382178 #782135 #617821 #217864
square
#382178 #782135 #617821 #217864
split-complementary
#382178 #786421 #357821
monochromatic
#0B0718 #221448 #382178 #4E2EA8 #6A47CC

Accessibility & contrast

On white

12.67
#382178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #382178
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382178#FFFFFF#000000##FFFFFF
##3821781.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#21374A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #382178;
/* rgb */ color: rgb(56, 33, 120);
/* oklch */ color: oklch(33.5% 0.139 288.7);
Tailwind
colors: {
  custom: {
    50: '#765ea0',
    500: '#382178',
    950: '#000000',
  },
}
SCSS
$custom: #382178;
$custom-light: #765ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#382178",
  "rgb": {
    "r": 56,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 255.862,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.33513,
    "c": 0.13922,
    "h": 288.7
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#382178
secondary
#91AB4A
accent
#E048B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #382178

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

Preview Lab → · Contrast checker → · Palette generator →

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