#321678#321678

#321678 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.152 H 287.0°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#321678
RGBrgb(50, 22, 120)
HSLhsl(257, 69%, 28%)
HSVhsv(257, 82%, 47%)
CMYKcmyk(58.3%, 81.7%, 0%, 52.9%)
CIE-LABlab(18.40, 38.97, -50.47)
CIE-LCHlch(18.40, 63.76, 307.67°)
OKLaboklab(31.42% 0.0444 -0.1453)
OKLCHoklch(31.42% 0.152 287)
XYZxyz(4.9915, 2.6077, 18.0060)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321678 #5C7816
analogous
#162B78 #321678 #631678
triadic
#321678 #783216 #167832
tetradic
#321678 #78162B #5C7816 #167863
square
#321678 #78162B #5C7816 #167863
split-complementary
#321678 #786316 #2B7816
monochromatic
#0B051A #1C0D44 #321678 #481FAC #602FD9

Accessibility & contrast

On white

13.80
#321678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#321678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321678
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321678#FFFFFF#000000##FFFFFF
##3216781.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#123347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321678;
/* rgb */ color: rgb(50, 22, 120);
/* oklch */ color: oklch(31.4% 0.152 287.0);
Tailwind
colors: {
  custom: {
    50: '#7357a0',
    500: '#321678',
    950: '#000000',
  },
}
SCSS
$custom: #321678;
$custom-light: #7357a0;
$custom-dark: #000000;
JSON
{
  "hex": "#321678",
  "rgb": {
    "r": 50,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 257.143,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31418,
    "c": 0.15193,
    "h": 287
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#321678
secondary
#8DAD3C
accent
#EC3CBA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321678

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

Preview Lab → · Contrast checker → · Palette generator →

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