#381256#381256

#381256 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.3% C 0.116 H 305.6°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#381256
RGBrgb(56, 18, 86)
HSLhsl(274, 65%, 20%)
HSVhsv(274, 79%, 34%)
CMYKcmyk(34.9%, 79.1%, 0%, 66.3%)
CIE-LABlab(15.20, 32.29, -33.31)
CIE-LCHlch(15.20, 46.39, 314.11°)
OKLaboklab(28.34% 0.0677 -0.0947)
OKLCHoklch(28.34% 0.116 305.6)
XYZxyz(3.5265, 1.9453, 8.9920)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381256 #305612
analogous
#161256 #381256 #561252
triadic
#381256 #563812 #125638
tetradic
#381256 #561612 #305612 #125256
square
#381256 #561612 #305612 #125256
split-complementary
#381256 #525612 #125616
monochromatic
#100519 #170723 #381256 #591D89 #7A27BB

Accessibility & contrast

On white

15.12
#381256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#381256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381256
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381256#FFFFFF#000000##FFFFFF
##3812561.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#332233
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #381256;
/* rgb */ color: rgb(56, 18, 86);
/* oklch */ color: oklch(28.3% 0.116 305.6);
Tailwind
colors: {
  custom: {
    50: '#725486',
    500: '#381256',
    950: '#000000',
  },
}
SCSS
$custom: #381256;
$custom-light: #725486;
$custom-dark: #000000;
JSON
{
  "hex": "#381256",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 273.529,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28338,
    "c": 0.11642,
    "h": 305.6
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#381256
secondary
#5D8F35
accent
#E83F8A
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381256

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

Preview Lab → · Contrast checker → · Palette generator →

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