#381876#381876

#381876 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.147 H 291.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#381876
RGBrgb(56, 24, 118)
HSLhsl(260, 66%, 28%)
HSVhsv(260, 80%, 46%)
CMYKcmyk(52.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(19.23, 38.27, -47.79)
CIE-LCHlch(19.23, 61.23, 308.69°)
OKLaboklab(32.1% 0.0533 -0.1373)
OKLCHoklch(32.1% 0.147 291.2)
XYZxyz(5.2266, 2.8018, 17.4014)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381876 #567618
analogous
#182776 #381876 #671876
triadic
#381876 #763818 #187638
tetradic
#381876 #761827 #567618 #187667
square
#381876 #761827 #567618 #187667
split-complementary
#381876 #766718 #277618
monochromatic
#0C0519 #200E43 #381876 #5022A9 #6A33D5

Accessibility & contrast

On white

13.46
#381876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381876
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381876#FFFFFF#000000##FFFFFF
##3818761.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#233246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381876;
/* rgb */ color: rgb(56, 24, 118);
/* oklch */ color: oklch(32.1% 0.147 291.2);
Tailwind
colors: {
  custom: {
    50: '#76599e',
    500: '#381876',
    950: '#000000',
  },
}
SCSS
$custom: #381876;
$custom-light: #76599e;
$custom-dark: #000000;
JSON
{
  "hex": "#381876",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 260.426,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.321,
    "c": 0.14727,
    "h": 291.2
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#381876
secondary
#86AB3F
accent
#E93FAF
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381876

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

Preview Lab → · Contrast checker → · Palette generator →

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