#321987#321987

#321987 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.167 H 283.0°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#321987
RGBrgb(50, 25, 135)
HSLhsl(254, 69%, 31%)
HSVhsv(254, 81%, 53%)
CMYKcmyk(63%, 81.5%, 0%, 47.1%)
CIE-LABlab(20.53, 42.03, -56.48)
CIE-LCHlch(20.53, 70.40, 306.65°)
OKLaboklab(33.38% 0.0375 -0.1629)
OKLCHoklch(33.38% 0.167 283)
XYZxyz(6.0348, 3.1222, 23.2016)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321987 #6E8719
analogous
#193787 #321987 #691987
triadic
#321987 #873219 #198732
tetradic
#321987 #871937 #6E8719 #198769
square
#321987 #871937 #6E8719 #198769
split-complementary
#321987 #876919 #378719
monochromatic
#0C0620 #1F0F53 #321987 #4523BB #633FDB

Accessibility & contrast

On white

12.93
#321987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321987
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321987#FFFFFF#000000##FFFFFF
##3219871.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321987;
/* rgb */ color: rgb(50, 25, 135);
/* oklch */ color: oklch(33.4% 0.167 283.0);
Tailwind
colors: {
  custom: {
    50: '#765aab',
    500: '#321987',
    950: '#000000',
  },
}
SCSS
$custom: #321987;
$custom-light: #765aab;
$custom-dark: #000000;
JSON
{
  "hex": "#321987",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 253.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33383,
    "c": 0.16715,
    "h": 283
  },
  "luminance": 0.03123
}

Semantic roles & 50–950 ramp

primary
#321987
secondary
#9FBA41
accent
#EC3CC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321987

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

Preview Lab → · Contrast checker → · Palette generator →

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