#321C9B#321C9B

#321C9B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.188 H 279.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#321C9B
RGBrgb(50, 28, 155)
HSLhsl(250, 69%, 36%)
HSVhsv(250, 82%, 61%)
CMYKcmyk(67.7%, 81.9%, 0%, 39.2%)
CIE-LABlab(23.25, 46.64, -64.39)
CIE-LCHlch(23.25, 79.51, 305.92°)
OKLaboklab(35.93% 0.0296 -0.1859)
OKLCHoklch(35.93% 0.188 279)
XYZxyz(7.6451, 3.8745, 31.3490)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321C9B #859B1C
analogous
#1C459B #321C9B #711C9B
triadic
#321C9B #9B321C #1C9B32
tetradic
#321C9B #9B1C45 #859B1C #1C9B71
square
#321C9B #9B1C45 #859B1C #1C9B71
split-complementary
#321C9B #9B711C #459B1C
monochromatic
#110933 #211367 #321C9B #4325CF #6A52E0

Accessibility & contrast

On white

11.83
#321C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#321C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321C9B
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321C9B#FFFFFF#000000##FFFFFF
##321C9B1.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #321c9b;
/* rgb */ color: rgb(50, 28, 155);
/* oklch */ color: oklch(35.9% 0.188 279.0);
Tailwind
colors: {
  custom: {
    50: '#7a5dba',
    500: '#321c9b',
    950: '#000000',
  },
}
SCSS
$custom: #321c9b;
$custom-light: #7a5dba;
$custom-dark: #000000;
JSON
{
  "hex": "#321c9b",
  "rgb": {
    "r": 50,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 250.394,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35932,
    "c": 0.18828,
    "h": 279
  },
  "luminance": 0.03875
}

Semantic roles & 50–950 ramp

primary
#321C9B
secondary
#AFC350
accent
#EC3CCE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #321C9B

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

Preview Lab → · Contrast checker → · Palette generator →

#321C9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva