#321071#321071

#321071 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.149 H 290.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#321071
RGBrgb(50, 16, 113)
HSLhsl(261, 75%, 25%)
HSVhsv(261, 86%, 44%)
CMYKcmyk(55.8%, 85.8%, 0%, 55.7%)
CIE-LABlab(16.70, 39.66, -48.75)
CIE-LCHlch(16.70, 62.84, 309.13°)
OKLaboklab(30.02% 0.051 -0.1402)
OKLCHoklch(30.02% 0.149 290)
XYZxyz(4.4805, 2.2407, 15.8160)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321071 #4F7110
analogous
#101E71 #321071 #621071
triadic
#321071 #713210 #107132
tetradic
#321071 #71101E #4F7110 #107162
square
#321071 #71101E #4F7110 #107162
split-complementary
#321071 #716210 #1E7110
monochromatic
#0C041B #1A083B #321071 #4A18A7 #611FDC

Accessibility & contrast

On white

14.50
#321071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#321071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321071
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321071#FFFFFF#000000##FFFFFF
##3210711.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#1A2D42
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321071;
/* rgb */ color: rgb(50, 16, 113);
/* oklch */ color: oklch(30.0% 0.149 290.0);
Tailwind
colors: {
  custom: {
    50: '#72549b',
    500: '#321071',
    950: '#000000',
  },
}
SCSS
$custom: #321071;
$custom-light: #72549b;
$custom-dark: #000000;
JSON
{
  "hex": "#321071",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 261.031,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30017,
    "c": 0.14919,
    "h": 290
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#321071
secondary
#80A934
accent
#F236B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321071

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

Preview Lab → · Contrast checker → · Palette generator →

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