#382040#382040

#382040 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.0% C 0.064 H 317.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#382040
RGBrgb(56, 32, 64)
HSLhsl(285, 33%, 19%)
HSVhsv(285, 50%, 25%)
CMYKcmyk(12.5%, 50%, 0%, 74.9%)
CIE-LABlab(16.72, 18.25, -15.78)
CIE-LCHlch(16.72, 24.13, 319.15°)
OKLaboklab(28.95% 0.0472 -0.0436)
OKLCHoklch(28.95% 0.064 317.3)
XYZxyz(3.0727, 2.2440, 5.1208)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382040 #284020
analogous
#282040 #382040 #402038
triadic
#382040 #403820 #204038
tetradic
#382040 #402820 #284020 #203840
square
#382040 #402820 #284020 #203840
split-complementary
#382040 #384020 #204028
monochromatic
#120A14 #140C17 #382040 #5C3469 #7F4992

Accessibility & contrast

On white

14.49
#382040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#382040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382040
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382040#FFFFFF#000000##FFFFFF
##3820401.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2841
Deuteranopia (green-blind)
#212A3F
Tritanopia (blue-blind)
#38242D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #382040;
/* rgb */ color: rgb(56, 32, 64);
/* oklch */ color: oklch(29.0% 0.064 317.3);
Tailwind
colors: {
  custom: {
    50: '#6f5c75',
    500: '#382040',
    950: '#000000',
  },
}
SCSS
$custom: #382040;
$custom-light: #6f5c75;
$custom-dark: #000000;
JSON
{
  "hex": "#382040",
  "rgb": {
    "r": 56,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 285,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28952,
    "c": 0.06429,
    "h": 317.3
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#382040
secondary
#537448
accent
#C95E79
background
#F6F5F7
surface
#ECE9ED
border
#C7C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #382040

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

Preview Lab → · Contrast checker → · Palette generator →

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