#381871#381871

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

Color values

HEX#381871
RGBrgb(56, 24, 113)
HSLhsl(262, 65%, 27%)
HSVhsv(262, 79%, 44%)
CMYKcmyk(50.4%, 78.8%, 0%, 55.7%)
CIE-LABlab(18.74, 36.82, -45.37)
CIE-LCHlch(18.74, 58.43, 309.06°)
OKLaboklab(31.61% 0.0548 -0.1302)
OKLCHoklch(31.61% 0.141 292.8)
XYZxyz(4.9373, 2.6861, 15.8779)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381871 #517118
analogous
#182571 #381871 #651871
triadic
#381871 #713818 #187138
tetradic
#381871 #711825 #517118 #187165
square
#381871 #711825 #517118 #187165
split-complementary
#381871 #716518 #257118
monochromatic
#0D0519 #1F0D3F #381871 #5123A3 #6B30D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381871#FFFFFF#000000##FFFFFF
##3818711.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)
#002F74
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#263043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381871;
/* rgb */ color: rgb(56, 24, 113);
/* oklch */ color: oklch(31.6% 0.141 292.8);
Tailwind
colors: {
  custom: {
    50: '#75599b',
    500: '#381871',
    950: '#000000',
  },
}
SCSS
$custom: #381871;
$custom-light: #75599b;
$custom-dark: #000000;
JSON
{
  "hex": "#381871",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 261.573,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.14125,
    "h": 292.8
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#381871
secondary
#81A63E
accent
#E840AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381871

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

Preview Lab → · Contrast checker → · Palette generator →

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