#321577#321577

#321577 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.152 H 287.4°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#321577
RGBrgb(50, 21, 119)
HSLhsl(258, 70%, 27%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(58%, 82.4%, 0%, 53.3%)
CIE-LABlab(18.13, 39.15, -50.28)
CIE-LCHlch(18.13, 63.72, 307.91°)
OKLaboklab(31.2% 0.0454 -0.1447)
OKLCHoklch(31.2% 0.152 287.4)
XYZxyz(4.9123, 2.5461, 17.6818)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321577 #5A7715
analogous
#152977 #321577 #631577
triadic
#321577 #773215 #157732
tetradic
#321577 #771529 #5A7715 #157763
square
#321577 #771529 #5A7715 #157763
split-complementary
#321577 #776315 #297715
monochromatic
#0B051A #1C0C43 #321577 #481EAB #602DDA

Accessibility & contrast

On white

13.91
#321577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321577
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321577#FFFFFF#000000##FFFFFF
##3215771.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#133246
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #321577;
/* rgb */ color: rgb(50, 21, 119);
/* oklch */ color: oklch(31.2% 0.152 287.4);
Tailwind
colors: {
  custom: {
    50: '#73579f',
    500: '#321577',
    950: '#000000',
  },
}
SCSS
$custom: #321577;
$custom-light: #73579f;
$custom-dark: #000000;
JSON
{
  "hex": "#321577",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 257.755,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31196,
    "c": 0.1517,
    "h": 287.4
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#321577
secondary
#8BAD3B
accent
#ED3BB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #321577

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

Preview Lab → · Contrast checker → · Palette generator →

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