#321566#321566

#321566 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.131 H 292.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#321566
RGBrgb(50, 21, 102)
HSLhsl(261, 66%, 24%)
HSVhsv(261, 79%, 40%)
CMYKcmyk(51%, 79.4%, 0%, 60%)
CIE-LABlab(16.37, 34.11, -42.10)
CIE-LCHlch(16.37, 54.18, 309.01°)
OKLaboklab(29.44% 0.0508 -0.1208)
OKLCHoklch(29.44% 0.131 292.8)
XYZxyz(3.9812, 2.1736, 12.7776)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321566 #496615
analogous
#152166 #321566 #5B1566
triadic
#321566 #663215 #156632
tetradic
#321566 #661521 #496615 #15665B
square
#321566 #661521 #496615 #15665B
split-complementary
#321566 #665B15 #216615
monochromatic
#0C0519 #190B33 #321566 #4B1F99 #642ACC

Accessibility & contrast

On white

14.64
#321566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321566
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321566#FFFFFF#000000##FFFFFF
##3215661.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#222B3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321566;
/* rgb */ color: rgb(50, 21, 102);
/* oklch */ color: oklch(29.4% 0.131 292.8);
Tailwind
colors: {
  custom: {
    50: '#705692',
    500: '#321566',
    950: '#000000',
  },
}
SCSS
$custom: #321566;
$custom-light: #705692;
$custom-dark: #000000;
JSON
{
  "hex": "#321566",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 261.481,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2944,
    "c": 0.13104,
    "h": 292.8
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#321566
secondary
#799D3A
accent
#E93FAC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321566

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

Preview Lab → · Contrast checker → · Palette generator →

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