#321966#321966

#321966 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.126 H 291.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#321966
RGBrgb(50, 25, 102)
HSLhsl(259, 61%, 25%)
HSVhsv(259, 75%, 40%)
CMYKcmyk(51%, 75.5%, 0%, 60%)
CIE-LABlab(17.14, 31.93, -40.84)
CIE-LCHlch(17.14, 51.84, 308.02°)
OKLaboklab(29.99% 0.0469 -0.1171)
OKLCHoklch(29.99% 0.126 291.8)
XYZxyz(4.0606, 2.3325, 12.8041)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321966 #4D6619
analogous
#192666 #321966 #591966
triadic
#321966 #663219 #196632
tetradic
#321966 #661926 #4D6619 #196659
square
#321966 #661926 #4D6619 #196659
split-complementary
#321966 #665919 #266619
monochromatic
#0C0619 #1A0D35 #321966 #4A2597 #6231C8

Accessibility & contrast

On white

14.32
#321966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321966
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321966#FFFFFF#000000##FFFFFF
##3219661.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#212D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321966;
/* rgb */ color: rgb(50, 25, 102);
/* oklch */ color: oklch(30.0% 0.126 291.8);
Tailwind
colors: {
  custom: {
    50: '#705892',
    500: '#321966',
    950: '#000000',
  },
}
SCSS
$custom: #321966;
$custom-light: #705892;
$custom-dark: #000000;
JSON
{
  "hex": "#321966",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 259.481,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29985,
    "c": 0.12617,
    "h": 291.8
  },
  "luminance": 0.02333
}

Semantic roles & 50–950 ramp

primary
#321966
secondary
#7E9C3F
accent
#E444B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321966

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

Preview Lab → · Contrast checker → · Palette generator →

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