#321793#321793

#321793 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.183 H 280.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#321793
RGBrgb(50, 23, 147)
HSLhsl(253, 73%, 33%)
HSVhsv(253, 84%, 58%)
CMYKcmyk(66%, 84.4%, 0%, 42.4%)
CIE-LABlab(21.57, 46.51, -62.25)
CIE-LCHlch(21.57, 77.70, 306.77°)
OKLaboklab(34.5% 0.0346 -0.1796)
OKLCHoklch(34.5% 0.183 280.9)
XYZxyz(6.8866, 3.3969, 27.8909)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321793 #789317
analogous
#173A93 #321793 #701793
triadic
#321793 #933217 #179332
tetradic
#321793 #93173A #789317 #179370
square
#321793 #93173A #789317 #179370
split-complementary
#321793 #937017 #3A9317
monochromatic
#0E0629 #200F5E #321793 #441FC8 #6543E2

Accessibility & contrast

On white

12.50
#321793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#321793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321793
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321793#FFFFFF#000000##FFFFFF
##3217931.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003896
Deuteranopia (green-blind)
#002F91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #321793;
/* rgb */ color: rgb(50, 23, 147);
/* oklch */ color: oklch(34.5% 0.183 280.9);
Tailwind
colors: {
  custom: {
    50: '#795ab4',
    500: '#321793',
    950: '#000000',
  },
}
SCSS
$custom: #321793;
$custom-light: #795ab4;
$custom-dark: #000000;
JSON
{
  "hex": "#321793",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 253.065,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34502,
    "c": 0.18293,
    "h": 280.9
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#321793
secondary
#A7C244
accent
#F038C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321793

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

Preview Lab → · Contrast checker → · Palette generator →

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