#321572#321572

#321572 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.146 H 288.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#321572
RGBrgb(50, 21, 114)
HSLhsl(259, 69%, 26%)
HSVhsv(259, 82%, 45%)
CMYKcmyk(56.1%, 81.6%, 0%, 55.3%)
CIE-LABlab(17.59, 37.67, -47.93)
CIE-LCHlch(17.59, 60.96, 308.17°)
OKLaboklab(30.67% 0.0471 -0.1379)
OKLCHoklch(30.67% 0.146 288.9)
XYZxyz(4.6199, 2.4291, 16.1418)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321572 #557215
analogous
#152772 #321572 #611572
triadic
#321572 #723215 #157232
tetradic
#321572 #721527 #557215 #157261
square
#321572 #721527 #557215 #157261
split-complementary
#321572 #726115 #277215
monochromatic
#0B051A #1B0B3E #321572 #491FA6 #602AD8

Accessibility & contrast

On white

14.13
#321572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#321572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321572
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321572#FFFFFF#000000##FFFFFF
##3215721.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#183043
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #321572;
/* rgb */ color: rgb(50, 21, 114);
/* oklch */ color: oklch(30.7% 0.146 288.9);
Tailwind
colors: {
  custom: {
    50: '#72569b',
    500: '#321572',
    950: '#000000',
  },
}
SCSS
$custom: #321572;
$custom-light: #72569b;
$custom-dark: #000000;
JSON
{
  "hex": "#321572",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 258.71,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30667,
    "c": 0.14569,
    "h": 288.9
  },
  "luminance": 0.02429
}

Semantic roles & 50–950 ramp

primary
#321572
secondary
#86A83B
accent
#EC3CB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321572

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

Preview Lab → · Contrast checker → · Palette generator →

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