#321336#321336

#321336 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.1% C 0.074 H 322.9°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#321336
RGBrgb(50, 19, 54)
HSLhsl(293, 48%, 14%)
HSVhsv(293, 65%, 21%)
CMYKcmyk(7.4%, 64.8%, 0%, 78.8%)
CIE-LABlab(12.03, 22.00, -16.14)
CIE-LCHlch(12.03, 27.28, 323.74°)
OKLaboklab(25.09% 0.0592 -0.0447)
OKLCHoklch(25.09% 0.074 322.9)
XYZxyz(2.2141, 1.4103, 3.6449)
Luminance0.0141 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321336 #173613
analogous
#211336 #321336 #361329
triadic
#321336 #363213 #133632
tetradic
#321336 #362113 #173613 #132936
square
#321336 #362113 #173613 #132936
split-complementary
#321336 #293613 #133621
monochromatic
#150817 #150817 #321336 #5C2363 #863391

Accessibility & contrast

On white

16.38
#321336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#321336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321336
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321336#FFFFFF#000000##FFFFFF
##3213361.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1D37
Deuteranopia (green-blind)
#182135
Tritanopia (blue-blind)
#331822
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #321336;
/* rgb */ color: rgb(50, 19, 54);
/* oklch */ color: oklch(25.1% 0.074 322.9);
Tailwind
colors: {
  custom: {
    50: '#6b526d',
    500: '#321336',
    950: '#000000',
  },
}
SCSS
$custom: #321336;
$custom-light: #6b526d;
$custom-dark: #000000;
JSON
{
  "hex": "#321336",
  "rgb": {
    "r": 50,
    "g": 19,
    "b": 54
  },
  "hsl": {
    "h": 293.143,
    "s": 47.945,
    "l": 14.314
  },
  "oklch": {
    "l": 0.25085,
    "c": 0.07414,
    "h": 322.9
  },
  "luminance": 0.0141
}

Semantic roles & 50–950 ramp

primary
#321336
secondary
#3D6E37
accent
#D85060
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #321336

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

Preview Lab → · Contrast checker → · Palette generator →

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