#321776#321776

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

Color values

HEX#321776
RGBrgb(50, 23, 118)
HSLhsl(257, 67%, 28%)
HSVhsv(257, 81%, 46%)
CMYKcmyk(57.6%, 80.5%, 0%, 53.7%)
CIE-LABlab(18.36, 37.88, -49.25)
CIE-LCHlch(18.36, 62.13, 307.56°)
OKLaboklab(31.33% 0.0443 -0.1417)
OKLCHoklch(31.33% 0.149 287.4)
XYZxyz(4.8908, 2.5986, 17.3799)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321776 #5B7617
analogous
#172B76 #321776 #621776
triadic
#321776 #763217 #177632
tetradic
#321776 #76172B #5B7617 #177662
square
#321776 #76172B #5B7617 #177662
split-complementary
#321776 #766217 #2B7617
monochromatic
#0B051A #1C0D43 #321776 #4821A9 #6031D7

Accessibility & contrast

On white

13.82
#321776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #321776
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321776#FFFFFF#000000##FFFFFF
##3217761.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#143246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321776;
/* rgb */ color: rgb(50, 23, 118);
/* oklch */ color: oklch(31.3% 0.149 287.4);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#321776',
    950: '#000000',
  },
}
SCSS
$custom: #321776;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#321776",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 257.053,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31326,
    "c": 0.14851,
    "h": 287.4
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#321776
secondary
#8CAB3E
accent
#EA3EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321776

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

Preview Lab → · Contrast checker → · Palette generator →

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