#321166#321166

#321166 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.135 H 293.6°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#321166
RGBrgb(50, 17, 102)
HSLhsl(263, 71%, 23%)
HSVhsv(263, 83%, 40%)
CMYKcmyk(51%, 83.3%, 0%, 60%)
CIE-LABlab(15.69, 36.08, -43.23)
CIE-LCHlch(15.69, 56.30, 309.85°)
OKLaboklab(28.96% 0.0543 -0.1241)
OKLCHoklch(28.96% 0.135 293.6)
XYZxyz(3.9135, 2.0382, 12.7550)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321166 #456611
analogous
#111A66 #321166 #5C1166
triadic
#321166 #663211 #116632
tetradic
#321166 #66111A #456611 #11665C
square
#321166 #66111A #456611 #11665C
split-complementary
#321166 #665C11 #1A6611
monochromatic
#0D041A #180832 #321166 #4C1A9A #6522CF

Accessibility & contrast

On white

14.92
#321166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#321166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321166
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321166#FFFFFF#000000##FFFFFF
##3211661.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#22293B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #321166;
/* rgb */ color: rgb(50, 17, 102);
/* oklch */ color: oklch(29.0% 0.135 293.6);
Tailwind
colors: {
  custom: {
    50: '#705492',
    500: '#321166',
    950: '#000000',
  },
}
SCSS
$custom: #321166;
$custom-light: #705492;
$custom-dark: #000000;
JSON
{
  "hex": "#321166",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 263.294,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2896,
    "c": 0.13542,
    "h": 293.6
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#321166
secondary
#759E35
accent
#EE3AA8
background
#F7F4F9
surface
#EDE8F1
border
#C8C4CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #321166

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

Preview Lab → · Contrast checker → · Palette generator →

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