#321042#321042

#321042 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.5% C 0.094 H 313.0°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#321042
RGBrgb(50, 16, 66)
HSLhsl(281, 61%, 16%)
HSVhsv(281, 76%, 26%)
CMYKcmyk(24.2%, 75.8%, 0%, 74.1%)
CIE-LABlab(12.24, 26.67, -24.35)
CIE-LCHlch(12.24, 36.11, 317.61°)
OKLaboklab(25.51% 0.0639 -0.0686)
OKLCHoklch(25.51% 0.094 313)
XYZxyz(2.4839, 1.4421, 5.3007)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321042 #204210
analogous
#191042 #321042 #421039
triadic
#321042 #423210 #104232
tetradic
#321042 #421910 #204210 #103942
square
#321042 #421910 #204210 #103942
split-complementary
#321042 #394210 #104219
monochromatic
#130619 #130619 #321042 #571C73 #7D28A5

Accessibility & contrast

On white

16.30
#321042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#321042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321042
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321042#FFFFFF#000000##FFFFFF
##3210421.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#0C2141
Tritanopia (blue-blind)
#301A27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #321042;
/* rgb */ color: rgb(50, 16, 66);
/* oklch */ color: oklch(25.5% 0.094 313.0);
Tailwind
colors: {
  custom: {
    50: '#6c5177',
    500: '#321042',
    950: '#000000',
  },
}
SCSS
$custom: #321042;
$custom-light: #6c5177;
$custom-dark: #000000;
JSON
{
  "hex": "#321042",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 280.8,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25506,
    "c": 0.09374,
    "h": 313
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#321042
secondary
#4A7C32
accent
#E44477
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #321042

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

Preview Lab → · Contrast checker → · Palette generator →

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