#321778#321778

#321778 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.151 H 286.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#321778
RGBrgb(50, 23, 120)
HSLhsl(257, 68%, 28%)
HSVhsv(257, 81%, 47%)
CMYKcmyk(58.3%, 80.8%, 0%, 52.9%)
CIE-LABlab(18.57, 38.48, -50.19)
CIE-LCHlch(18.57, 63.24, 307.48°)
OKLaboklab(31.54% 0.0437 -0.1445)
OKLCHoklch(31.54% 0.151 286.8)
XYZxyz(5.0109, 2.6467, 18.0125)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321778 #5D7817
analogous
#172C78 #321778 #621778
triadic
#321778 #783217 #177832
tetradic
#321778 #78172C #5D7817 #177862
square
#321778 #78172C #5D7817 #177862
split-complementary
#321778 #786217 #2C7817
monochromatic
#0B051A #1D0D45 #321778 #4721AB #6032D8

Accessibility & contrast

On white

13.73
#321778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321778
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321778#FFFFFF#000000##FFFFFF
##3217781.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#113347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321778;
/* rgb */ color: rgb(50, 23, 120);
/* oklch */ color: oklch(31.5% 0.151 286.8);
Tailwind
colors: {
  custom: {
    50: '#7358a0',
    500: '#321778',
    950: '#000000',
  },
}
SCSS
$custom: #321778;
$custom-light: #7358a0;
$custom-dark: #000000;
JSON
{
  "hex": "#321778",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 256.701,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31537,
    "c": 0.15095,
    "h": 286.8
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#321778
secondary
#8EAD3E
accent
#EB3DBA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321778

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

Preview Lab → · Contrast checker → · Palette generator →

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