#381071#381071

#381071 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.149 H 294.2°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#381071
RGBrgb(56, 16, 113)
HSLhsl(265, 75%, 25%)
HSVhsv(265, 86%, 44%)
CMYKcmyk(50.4%, 85.8%, 0%, 55.7%)
CIE-LABlab(17.48, 40.47, -47.45)
CIE-LCHlch(17.48, 62.36, 310.46°)
OKLaboklab(30.73% 0.0612 -0.1362)
OKLCHoklch(30.73% 0.149 294.2)
XYZxyz(4.7960, 2.4034, 15.8308)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381071 #497110
analogous
#101971 #381071 #681071
triadic
#381071 #713810 #107138
tetradic
#381071 #711019 #497110 #107168
square
#381071 #711019 #497110 #107168
split-complementary
#381071 #716810 #197110
monochromatic
#0D041B #1D083B #381071 #5318A7 #6D1FDC

Accessibility & contrast

On white

14.18
#381071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381071
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381071#FFFFFF#000000##FFFFFF
##3810711.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#262D42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381071;
/* rgb */ color: rgb(56, 16, 113);
/* oklch */ color: oklch(30.7% 0.149 294.2);
Tailwind
colors: {
  custom: {
    50: '#76559b',
    500: '#381071',
    950: '#000000',
  },
}
SCSS
$custom: #381071;
$custom-light: #76559b;
$custom-dark: #000000;
JSON
{
  "hex": "#381071",
  "rgb": {
    "r": 56,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 264.742,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30725,
    "c": 0.14932,
    "h": 294.2
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#381071
secondary
#79A934
accent
#F236A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381071

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

Preview Lab → · Contrast checker → · Palette generator →

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