#321996#321996

#321996 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.185 H 280.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#321996
RGBrgb(50, 25, 150)
HSLhsl(252, 71%, 34%)
HSVhsv(252, 83%, 59%)
CMYKcmyk(66.7%, 83.3%, 0%, 41.2%)
CIE-LABlab(22.21, 46.52, -63.03)
CIE-LCHlch(22.21, 78.34, 306.43°)
OKLaboklab(35.05% 0.0326 -0.182)
OKLCHoklch(35.05% 0.185 280.2)
XYZxyz(7.1663, 3.5748, 29.1606)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321996 #7D9619
analogous
#193F96 #321996 #711996
triadic
#321996 #963219 #199632
tetradic
#321996 #96193F #7D9619 #199671
square
#321996 #96193F #7D9619 #199671
split-complementary
#321996 #967119 #3F9619
monochromatic
#0F082D #211062 #321996 #4322CA #6749E1

Accessibility & contrast

On white

12.24
#321996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#321996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321996
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321996#FFFFFF#000000##FFFFFF
##3219961.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #321996;
/* rgb */ color: rgb(50, 25, 150);
/* oklch */ color: oklch(35.0% 0.185 280.2);
Tailwind
colors: {
  custom: {
    50: '#795bb6',
    500: '#321996',
    950: '#000000',
  },
}
SCSS
$custom: #321996;
$custom-light: #795bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#321996",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 252,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.18486,
    "h": 280.2
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#321996
secondary
#AAC249
accent
#EE3ACA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321996

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

Preview Lab → · Contrast checker → · Palette generator →

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