#380542#380542

#380542 is a dark, moderate purple. Relative luminance 0.013; OKLCH L 25.3% C 0.111 H 320.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#380542
RGBrgb(56, 5, 66)
HSLhsl(290, 86%, 14%)
HSVhsv(290, 92%, 26%)
CMYKcmyk(15.2%, 92.4%, 0%, 74.1%)
CIE-LABlab(11.57, 33.12, -25.36)
CIE-LCHlch(11.57, 41.71, 322.56°)
OKLaboklab(25.25% 0.0856 -0.0712)
OKLCHoklch(25.25% 0.111 320.2)
XYZxyz(2.6684, 1.3428, 5.2718)
Luminance0.0134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380542 #0F4205
analogous
#1A0542 #380542 #42052E
triadic
#380542 #423805 #054238
tetradic
#380542 #421A05 #0F4205 #052E42
square
#380542 #421A05 #0F4205 #052E42
split-complementary
#380542 #2E4205 #05421A
monochromatic
#18021C #18021C #380542 #68097B #990EB4

Accessibility & contrast

On white

16.55
#380542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#380542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380542
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380542#FFFFFF#000000##FFFFFF
##3805421.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#381324
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #380542;
/* rgb */ color: rgb(56, 5, 66);
/* oklch */ color: oklch(25.3% 0.111 320.2);
Tailwind
colors: {
  custom: {
    50: '#714d77',
    500: '#380542',
    950: '#000000',
  },
}
SCSS
$custom: #380542;
$custom-light: #714d77;
$custom-dark: #000000;
JSON
{
  "hex": "#380542",
  "rgb": {
    "r": 56,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 290.164,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.25254,
    "c": 0.11133,
    "h": 320.2
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#380542
secondary
#308220
accent
#FC2C4E
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #380542

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

Preview Lab → · Contrast checker → · Palette generator →

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