#321780#321780

#321780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.161 H 284.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#321780
RGBrgb(50, 23, 128)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 82%, 50%)
CMYKcmyk(60.9%, 82%, 0%, 49.8%)
CIE-LABlab(19.43, 40.88, -53.87)
CIE-LCHlch(19.43, 67.63, 307.19°)
OKLaboklab(32.39% 0.0411 -0.1552)
OKLCHoklch(32.39% 0.161 284.8)
XYZxyz(5.5169, 2.8491, 20.6771)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321780 #658017
analogous
#173080 #321780 #671780
triadic
#321780 #803217 #178032
tetradic
#321780 #801730 #658017 #178067
square
#321780 #801730 #658017 #178067
split-complementary
#321780 #806717 #308017
monochromatic
#0A051A #1E0E4C #321780 #4620B4 #6136DB

Accessibility & contrast

On white

13.38
#321780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#321780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321780
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321780#FFFFFF#000000##FFFFFF
##3217801.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#03364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #321780;
/* rgb */ color: rgb(50, 23, 128);
/* oklch */ color: oklch(32.4% 0.161 284.8);
Tailwind
colors: {
  custom: {
    50: '#7558a6',
    500: '#321780',
    950: '#000000',
  },
}
SCSS
$custom: #321780;
$custom-light: #7558a6;
$custom-dark: #000000;
JSON
{
  "hex": "#321780",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 255.429,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32392,
    "c": 0.16059,
    "h": 284.8
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#321780
secondary
#96B43E
accent
#EC3BBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #321780

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

Preview Lab → · Contrast checker → · Palette generator →

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