#321796#321796

#321796 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.186 H 280.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#321796
RGBrgb(50, 23, 150)
HSLhsl(253, 73%, 34%)
HSVhsv(253, 85%, 59%)
CMYKcmyk(66.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.92, 47.39, -63.52)
CIE-LCHlch(21.92, 79.25, 306.72°)
OKLaboklab(34.84% 0.0335 -0.1834)
OKLCHoklch(34.84% 0.186 280.4)
XYZxyz(7.1251, 3.4923, 29.1469)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321796 #7B9617
analogous
#173C96 #321796 #721796
triadic
#321796 #963217 #179632
tetradic
#321796 #96173C #7B9617 #179672
square
#321796 #96173C #7B9617 #179672
split-complementary
#321796 #967217 #3C9617
monochromatic
#0F072C #200F61 #321796 #441FCB #6645E2

Accessibility & contrast

On white

12.36
#321796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#321796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321796
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321796#FFFFFF#000000##FFFFFF
##3217961.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321796;
/* rgb */ color: rgb(50, 23, 150);
/* oklch */ color: oklch(34.8% 0.186 280.4);
Tailwind
colors: {
  custom: {
    50: '#795ab6',
    500: '#321796',
    950: '#000000',
  },
}
SCSS
$custom: #321796;
$custom-light: #795ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#321796",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 252.756,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34843,
    "c": 0.18639,
    "h": 280.4
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#321796
secondary
#A9C345
accent
#F038C9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #321796

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

Preview Lab → · Contrast checker → · Palette generator →

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