#321578#321578

#321578 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.153 H 287.2°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#321578
RGBrgb(50, 21, 120)
HSLhsl(258, 70%, 28%)
HSVhsv(258, 83%, 47%)
CMYKcmyk(58.3%, 82.5%, 0%, 52.9%)
CIE-LABlab(18.23, 39.45, -50.74)
CIE-LCHlch(18.23, 64.27, 307.86°)
OKLaboklab(31.3% 0.0451 -0.1461)
OKLCHoklch(31.3% 0.153 287.2)
XYZxyz(4.9727, 2.5702, 17.9997)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321578 #5B7815
analogous
#152978 #321578 #641578
triadic
#321578 #783215 #157832
tetradic
#321578 #781529 #5B7815 #157864
square
#321578 #781529 #5B7815 #157864
split-complementary
#321578 #786415 #297815
monochromatic
#0B051A #1C0C44 #321578 #481EAC #602DDA

Accessibility & contrast

On white

13.87
#321578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#321578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321578
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321578#FFFFFF#000000##FFFFFF
##3215781.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #321578;
/* rgb */ color: rgb(50, 21, 120);
/* oklch */ color: oklch(31.3% 0.153 287.2);
Tailwind
colors: {
  custom: {
    50: '#7357a0',
    500: '#321578',
    950: '#000000',
  },
}
SCSS
$custom: #321578;
$custom-light: #7357a0;
$custom-dark: #000000;
JSON
{
  "hex": "#321578",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 257.576,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31303,
    "c": 0.15288,
    "h": 287.2
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

primary
#321578
secondary
#8CAE3B
accent
#ED3BB9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #321578

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

Preview Lab → · Contrast checker → · Palette generator →

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