#381776#381776

#381776 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.148 H 291.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#381776
RGBrgb(56, 23, 118)
HSLhsl(261, 67%, 28%)
HSVhsv(261, 81%, 46%)
CMYKcmyk(52.5%, 80.5%, 0%, 53.7%)
CIE-LABlab(19.06, 38.76, -48.07)
CIE-LCHlch(19.06, 61.75, 308.88°)
OKLaboklab(31.98% 0.0542 -0.1381)
OKLCHoklch(31.98% 0.148 291.4)
XYZxyz(5.2064, 2.7613, 17.3947)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381776 #557617
analogous
#172676 #381776 #671776
triadic
#381776 #763817 #177638
tetradic
#381776 #761726 #557617 #177667
square
#381776 #761726 #557617 #177667
split-complementary
#381776 #766717 #267617
monochromatic
#0C051A #200D43 #381776 #5021A9 #6A31D7

Accessibility & contrast

On white

13.53
#381776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381776
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381776#FFFFFF#000000##FFFFFF
##3817761.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381776;
/* rgb */ color: rgb(56, 23, 118);
/* oklch */ color: oklch(32.0% 0.148 291.4);
Tailwind
colors: {
  custom: {
    50: '#76589e',
    500: '#381776',
    950: '#000000',
  },
}
SCSS
$custom: #381776;
$custom-light: #76589e;
$custom-dark: #000000;
JSON
{
  "hex": "#381776",
  "rgb": {
    "r": 56,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 260.842,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31981,
    "c": 0.14832,
    "h": 291.4
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#381776
secondary
#85AB3E
accent
#EA3EAE
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381776

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

Preview Lab → · Contrast checker → · Palette generator →

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