#381576#381576

#381576 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.150 H 291.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#381576
RGBrgb(56, 21, 118)
HSLhsl(262, 70%, 27%)
HSVhsv(262, 82%, 46%)
CMYKcmyk(52.5%, 82.2%, 0%, 53.7%)
CIE-LABlab(18.73, 39.70, -48.61)
CIE-LCHlch(18.73, 62.76, 309.24°)
OKLaboklab(31.75% 0.0557 -0.1396)
OKLCHoklch(31.75% 0.15 291.8)
XYZxyz(5.1681, 2.6849, 17.3820)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381576 #537615
analogous
#152376 #381576 #681576
triadic
#381576 #763815 #157638
tetradic
#381576 #761523 #537615 #157668
square
#381576 #761523 #537615 #157668
split-complementary
#381576 #766815 #237615
monochromatic
#0C051A #1F0C42 #381576 #511EAA #6B2CD9

Accessibility & contrast

On white

13.66
#381576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381576
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381576#FFFFFF#000000##FFFFFF
##3815761.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381576;
/* rgb */ color: rgb(56, 21, 118);
/* oklch */ color: oklch(31.8% 0.150 291.8);
Tailwind
colors: {
  custom: {
    50: '#76579e',
    500: '#381576',
    950: '#000000',
  },
}
SCSS
$custom: #381576;
$custom-light: #76579e;
$custom-dark: #000000;
JSON
{
  "hex": "#381576",
  "rgb": {
    "r": 56,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 261.649,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31753,
    "c": 0.15034,
    "h": 291.8
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#381576
secondary
#83AC3B
accent
#ED3BAD
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381576

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

Preview Lab → · Contrast checker → · Palette generator →

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