#321986#321986

#321986 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.166 H 283.2°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#321986
RGBrgb(50, 25, 134)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 81%, 53%)
CMYKcmyk(62.7%, 81.3%, 0%, 47.5%)
CIE-LABlab(20.42, 41.73, -56.03)
CIE-LCHlch(20.42, 69.86, 306.67°)
OKLaboklab(33.27% 0.0379 -0.1616)
OKLCHoklch(33.27% 0.166 283.2)
XYZxyz(5.9648, 3.0942, 22.8326)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321986 #6D8619
analogous
#193786 #321986 #681986
triadic
#321986 #863219 #198632
tetradic
#321986 #861937 #6D8619 #198668
square
#321986 #861937 #6D8619 #198668
split-complementary
#321986 #866819 #378619
monochromatic
#0C061F #1F0F52 #321986 #4523BA #623EDB

Accessibility & contrast

On white

12.97
#321986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#321986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321986
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321986#FFFFFF#000000##FFFFFF
##3219861.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321986;
/* rgb */ color: rgb(50, 25, 134);
/* oklch */ color: oklch(33.3% 0.166 283.2);
Tailwind
colors: {
  custom: {
    50: '#765aaa',
    500: '#321986',
    950: '#000000',
  },
}
SCSS
$custom: #321986;
$custom-light: #765aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#321986",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 253.761,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33274,
    "c": 0.16594,
    "h": 283.2
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#321986
secondary
#9EBA41
accent
#EB3CC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321986

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

Preview Lab → · Contrast checker → · Palette generator →

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