#381171#381171

#381171 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.148 H 294.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#381171
RGBrgb(56, 17, 113)
HSLhsl(264, 74%, 25%)
HSVhsv(264, 85%, 44%)
CMYKcmyk(50.4%, 85%, 0%, 55.7%)
CIE-LABlab(17.62, 40.06, -47.22)
CIE-LCHlch(17.62, 61.92, 310.31°)
OKLaboklab(30.82% 0.0605 -0.1355)
OKLCHoklch(30.82% 0.148 294.1)
XYZxyz(4.8111, 2.4338, 15.8359)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381171 #4A7111
analogous
#111A71 #381171 #681171
triadic
#381171 #713811 #117138
tetradic
#381171 #71111A #4A7111 #117168
square
#381171 #71111A #4A7111 #117168
split-complementary
#381171 #716811 #1A7111
monochromatic
#0D041B #1E093C #381171 #5219A6 #6D21DB

Accessibility & contrast

On white

14.12
#381171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#381171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381171
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381171#FFFFFF#000000##FFFFFF
##3811711.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381171;
/* rgb */ color: rgb(56, 17, 113);
/* oklch */ color: oklch(30.8% 0.148 294.1);
Tailwind
colors: {
  custom: {
    50: '#76559b',
    500: '#381171',
    950: '#000000',
  },
}
SCSS
$custom: #381171;
$custom-light: #76559b;
$custom-dark: #000000;
JSON
{
  "hex": "#381171",
  "rgb": {
    "r": 56,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 264.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30822,
    "c": 0.14842,
    "h": 294.1
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#381171
secondary
#7AA836
accent
#F137A5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #381171

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

Preview Lab → · Contrast checker → · Palette generator →

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