#381236#381236

#381236 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.9% C 0.080 H 329.7°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#381236
RGBrgb(56, 18, 54)
HSLhsl(303, 51%, 15%)
HSVhsv(303, 68%, 22%)
CMYKcmyk(0%, 67.9%, 3.6%, 78%)
CIE-LABlab(12.86, 24.56, -14.75)
CIE-LCHlch(12.86, 28.65, 329.01°)
OKLaboklab(25.91% 0.0693 -0.0405)
OKLCHoklch(25.91% 0.08 329.7)
XYZxyz(2.5130, 1.5399, 3.6542)
Luminance0.0154 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381236 #123814
analogous
#271238 #381236 #381223
triadic
#381236 #363812 #123638
tetradic
#381236 #382712 #123814 #122338
square
#381236 #382712 #123814 #122338
split-complementary
#381236 #233812 #123827
monochromatic
#170716 #170716 #381236 #662163 #95308F

Accessibility & contrast

On white

16.06
#381236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#381236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381236
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381236#FFFFFF#000000##FFFFFF
##3812361.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1E37
Deuteranopia (green-blind)
#1C2335
Tritanopia (blue-blind)
#3A1621
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #381236;
/* rgb */ color: rgb(56, 18, 54);
/* oklch */ color: oklch(25.9% 0.080 329.7);
Tailwind
colors: {
  custom: {
    50: '#70526d',
    500: '#381236',
    950: '#000000',
  },
}
SCSS
$custom: #381236;
$custom-light: #70526d;
$custom-dark: #000000;
JSON
{
  "hex": "#381236",
  "rgb": {
    "r": 56,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 303.158,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2591,
    "c": 0.08028,
    "h": 329.7
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#381236
secondary
#357138
accent
#DB544D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#080207
muted
#7B787A

Preview Lab

Preview with #381236

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

Preview Lab → · Contrast checker → · Palette generator →

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