#320840#320840

#320840 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.103 H 315.9°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#320840
RGBrgb(50, 8, 64)
HSLhsl(285, 78%, 14%)
HSVhsv(285, 88%, 25%)
CMYKcmyk(21.9%, 87.5%, 0%, 74.9%)
CIE-LABlab(10.72, 30.03, -25.38)
CIE-LCHlch(10.72, 39.31, 319.80°)
OKLaboklab(24.38% 0.0738 -0.0716)
OKLCHoklch(24.38% 0.103 315.9)
XYZxyz(2.3275, 1.2220, 4.9628)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320840 #164008
analogous
#160840 #320840 #400832
triadic
#320840 #403208 #084032
tetradic
#320840 #401608 #164008 #083240
square
#320840 #401608 #164008 #083240
split-complementary
#320840 #324008 #084016
monochromatic
#15031B #15031B #320840 #5D0F76 #8716AD

Accessibility & contrast

On white

16.88
#320840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#320840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320840
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320840#FFFFFF#000000##FFFFFF
##3208401.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#311524
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #320840;
/* rgb */ color: rgb(50, 8, 64);
/* oklch */ color: oklch(24.4% 0.103 315.9);
Tailwind
colors: {
  custom: {
    50: '#6d4d75',
    500: '#320840',
    950: '#000000',
  },
}
SCSS
$custom: #320840;
$custom-light: #6d4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#320840",
  "rgb": {
    "r": 50,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 285,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24376,
    "c": 0.1028,
    "h": 315.9
  },
  "luminance": 0.01222
}

Semantic roles & 50–950 ramp

primary
#320840
secondary
#3C7E25
accent
#F43464
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #320840

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

Preview Lab → · Contrast checker → · Palette generator →

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