#381987#381987

#381987 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.166 H 286.5°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#381987
RGBrgb(56, 25, 135)
HSLhsl(257, 69%, 31%)
HSVhsv(257, 81%, 53%)
CMYKcmyk(58.5%, 81.5%, 0%, 47.1%)
CIE-LABlab(21.15, 42.76, -55.43)
CIE-LCHlch(21.15, 70.01, 307.64°)
OKLaboklab(33.97% 0.0472 -0.1596)
OKLCHoklch(33.97% 0.166 286.5)
XYZxyz(6.3504, 3.2849, 23.2164)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381987 #688719
analogous
#193187 #381987 #6F1987
triadic
#381987 #873819 #198738
tetradic
#381987 #871931 #688719 #19876F
square
#381987 #871931 #688719 #19876F
split-complementary
#381987 #876F19 #318719
monochromatic
#0D0620 #230F53 #381987 #4D23BB #6B3FDB

Accessibility & contrast

On white

12.67
#381987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381987
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381987#FFFFFF#000000##FFFFFF
##3819871.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#003085
Tritanopia (blue-blind)
#113A50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381987;
/* rgb */ color: rgb(56, 25, 135);
/* oklch */ color: oklch(34.0% 0.166 286.5);
Tailwind
colors: {
  custom: {
    50: '#795bab',
    500: '#381987',
    950: '#000000',
  },
}
SCSS
$custom: #381987;
$custom-light: #795bab;
$custom-dark: #000000;
JSON
{
  "hex": "#381987",
  "rgb": {
    "r": 56,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 256.909,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33966,
    "c": 0.16645,
    "h": 286.5
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#381987
secondary
#98BA41
accent
#EC3CBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381987

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

Preview Lab → · Contrast checker → · Palette generator →

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