#321151#321151

#321151 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.110 H 303.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#321151
RGBrgb(50, 17, 81)
HSLhsl(271, 65%, 19%)
HSVhsv(271, 79%, 32%)
CMYKcmyk(38.3%, 79%, 0%, 68.2%)
CIE-LABlab(13.67, 30.14, -32.43)
CIE-LCHlch(13.67, 44.28, 312.91°)
OKLaboklab(26.92% 0.0603 -0.0924)
OKLCHoklch(26.92% 0.11 303.1)
XYZxyz(3.0007, 1.6731, 7.9478)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321151 #305111
analogous
#121151 #321151 #511150
triadic
#321151 #513211 #115132
tetradic
#321151 #511211 #305111 #115051
square
#321151 #511211 #305111 #115051
split-complementary
#321151 #505111 #115112
monochromatic
#100519 #13061E #321151 #511C84 #7026B6

Accessibility & contrast

On white

15.74
#321151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#321151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321151
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321151#FFFFFF#000000##FFFFFF
##3211511.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#2C2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321151;
/* rgb */ color: rgb(50, 17, 81);
/* oklch */ color: oklch(26.9% 0.110 303.1);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#321151',
    950: '#000000',
  },
}
SCSS
$custom: #321151;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#321151",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 270.938,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26922,
    "c": 0.11031,
    "h": 303.1
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#321151
secondary
#5E8A34
accent
#E84091
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #321151

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

Preview Lab → · Contrast checker → · Palette generator →

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