#332176#332176

#332176 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.8% C 0.137 H 285.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#332176
RGBrgb(51, 33, 118)
HSLhsl(253, 56%, 30%)
HSVhsv(253, 72%, 46%)
CMYKcmyk(56.8%, 72%, 0%, 53.7%)
CIE-LABlab(20.44, 32.49, -45.84)
CIE-LCHlch(20.44, 56.18, 305.33°)
OKLaboklab(32.82% 0.0373 -0.1318)
OKLCHoklch(32.82% 0.137 285.8)
XYZxyz(5.1781, 3.0992, 17.4614)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332176 #647621
analogous
#213A76 #332176 #5E2176
triadic
#332176 #763321 #217633
tetradic
#332176 #76213A #647621 #21765E
square
#332176 #76213A #647621 #21765E
split-complementary
#332176 #765E21 #3A7621
monochromatic
#0A0718 #1E1446 #332176 #482EA6 #6246CB

Accessibility & contrast

On white

12.96
#332176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#332176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332176
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332176#FFFFFF#000000##FFFFFF
##3321761.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#163749
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332176;
/* rgb */ color: rgb(51, 33, 118);
/* oklch */ color: oklch(32.8% 0.137 285.8);
Tailwind
colors: {
  custom: {
    50: '#725e9e',
    500: '#332176',
    950: '#000000',
  },
}
SCSS
$custom: #332176;
$custom-light: #725e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#332176",
  "rgb": {
    "r": 51,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 252.706,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32821,
    "c": 0.13695,
    "h": 285.8
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#332176
secondary
#95A94A
accent
#E048C0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #332176

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

Preview Lab → · Contrast checker → · Palette generator →

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