#321978#321978

#321978 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.149 H 286.5°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#321978
RGBrgb(50, 25, 120)
HSLhsl(256, 66%, 28%)
HSVhsv(256, 79%, 47%)
CMYKcmyk(58.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.93, 37.46, -49.60)
CIE-LCHlch(18.93, 62.16, 307.06°)
OKLaboklab(31.79% 0.0422 -0.1428)
OKLCHoklch(31.79% 0.149 286.5)
XYZxyz(5.0522, 2.7292, 18.0262)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321978 #5F7819
analogous
#193078 #321978 #611978
triadic
#321978 #783219 #197832
tetradic
#321978 #781930 #5F7819 #197861
square
#321978 #781930 #5F7819 #197861
split-complementary
#321978 #786119 #307819
monochromatic
#0B0519 #1D0E45 #321978 #4724AB #6036D5

Accessibility & contrast

On white

13.59
#321978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#321978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321978
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321978#FFFFFF#000000##FFFFFF
##3219781.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#113448
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321978;
/* rgb */ color: rgb(50, 25, 120);
/* oklch */ color: oklch(31.8% 0.149 286.5);
Tailwind
colors: {
  custom: {
    50: '#7359a0',
    500: '#321978',
    950: '#000000',
  },
}
SCSS
$custom: #321978;
$custom-light: #7359a0;
$custom-dark: #000000;
JSON
{
  "hex": "#321978",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 255.789,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31785,
    "c": 0.1489,
    "h": 286.5
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#321978
secondary
#90AD40
accent
#E83FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321978

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

Preview Lab → · Contrast checker → · Palette generator →

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