#321038#321038

#321038 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.8% C 0.082 H 321.4°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#321038
RGBrgb(50, 16, 56)
HSLhsl(291, 56%, 14%)
HSVhsv(291, 71%, 22%)
CMYKcmyk(10.7%, 71.4%, 0%, 78%)
CIE-LABlab(11.51, 24.21, -18.39)
CIE-LCHlch(11.51, 30.40, 322.79°)
OKLaboklab(24.75% 0.0641 -0.0512)
OKLCHoklch(24.75% 0.082 321.4)
XYZxyz(2.2144, 1.3343, 3.8815)
Luminance0.0133 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321038 #163810
analogous
#1E1038 #321038 #38102A
triadic
#321038 #383210 #103832
tetradic
#321038 #381E10 #163810 #102A38
square
#321038 #381E10 #163810 #102A38
split-complementary
#321038 #2A3810 #10381E
monochromatic
#150718 #150718 #321038 #5D1E68 #872B97

Accessibility & contrast

On white

16.58
#321038 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#321038 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321038
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321038#FFFFFF#000000##FFFFFF
##3210381.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C39
Deuteranopia (green-blind)
#142037
Tritanopia (blue-blind)
#331622
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #321038;
/* rgb */ color: rgb(50, 16, 56);
/* oklch */ color: oklch(24.8% 0.082 321.4);
Tailwind
colors: {
  custom: {
    50: '#6b516f',
    500: '#321038',
    950: '#000000',
  },
}
SCSS
$custom: #321038;
$custom-light: #6b516f;
$custom-dark: #000000;
JSON
{
  "hex": "#321038",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 56
  },
  "hsl": {
    "h": 291,
    "s": 55.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24753,
    "c": 0.08202,
    "h": 321.4
  },
  "luminance": 0.01334
}

Semantic roles & 50–950 ramp

primary
#321038
secondary
#3C7232
accent
#DF495F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #321038

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

Preview Lab → · Contrast checker → · Palette generator →

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