#321886#321886

#321886 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 283.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#321886
RGBrgb(50, 24, 134)
HSLhsl(254, 70%, 31%)
HSVhsv(254, 82%, 53%)
CMYKcmyk(62.7%, 82.1%, 0%, 47.5%)
CIE-LABlab(20.25, 42.20, -56.31)
CIE-LCHlch(20.25, 70.37, 306.85°)
OKLaboklab(33.16% 0.0385 -0.1624)
OKLCHoklch(33.16% 0.167 283.3)
XYZxyz(5.9438, 3.0522, 22.8256)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321886 #6C8618
analogous
#183586 #321886 #691886
triadic
#321886 #863218 #188632
tetradic
#321886 #861835 #6C8618 #188669
square
#321886 #861835 #6C8618 #188669
split-complementary
#321886 #866918 #358618
monochromatic
#0B051E #1F0F52 #321886 #4521BA #623CDC

Accessibility & contrast

On white

13.04
#321886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#321886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321886
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321886#FFFFFF#000000##FFFFFF
##3218861.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #321886;
/* rgb */ color: rgb(50, 24, 134);
/* oklch */ color: oklch(33.2% 0.167 283.3);
Tailwind
colors: {
  custom: {
    50: '#7659aa',
    500: '#321886',
    950: '#000000',
  },
}
SCSS
$custom: #321886;
$custom-light: #7659aa;
$custom-dark: #000000;
JSON
{
  "hex": "#321886",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 254.182,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33159,
    "c": 0.16685,
    "h": 283.3
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#321886
secondary
#9DBA40
accent
#EC3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #321886

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

Preview Lab → · Contrast checker → · Palette generator →

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