#321977#321977

#321977 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.148 H 286.7°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#321977
RGBrgb(50, 25, 119)
HSLhsl(256, 65%, 28%)
HSVhsv(256, 79%, 47%)
CMYKcmyk(58%, 79%, 0%, 53.3%)
CIE-LABlab(18.82, 37.15, -49.13)
CIE-LCHlch(18.82, 61.60, 307.10°)
OKLaboklab(31.68% 0.0425 -0.1414)
OKLCHoklch(31.68% 0.148 286.7)
XYZxyz(4.9918, 2.7050, 17.7083)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321977 #5E7719
analogous
#192F77 #321977 #611977
triadic
#321977 #773219 #197732
tetradic
#321977 #77192F #5E7719 #197761
square
#321977 #77192F #5E7719 #197761
split-complementary
#321977 #776119 #2F7719
monochromatic
#0B0519 #1D0E44 #321977 #4724AA #6036D5

Accessibility & contrast

On white

13.63
#321977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#321977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321977
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321977#FFFFFF#000000##FFFFFF
##3219771.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#133447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #321977;
/* rgb */ color: rgb(50, 25, 119);
/* oklch */ color: oklch(31.7% 0.148 286.7);
Tailwind
colors: {
  custom: {
    50: '#73599f',
    500: '#321977',
    950: '#000000',
  },
}
SCSS
$custom: #321977;
$custom-light: #73599f;
$custom-dark: #000000;
JSON
{
  "hex": "#321977",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 255.957,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31681,
    "c": 0.14766,
    "h": 286.7
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#321977
secondary
#8FAC40
accent
#E840BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #321977

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

Preview Lab → · Contrast checker → · Palette generator →

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