#320540#320540

#320540 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.107 H 316.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#320540
RGBrgb(50, 5, 64)
HSLhsl(286, 86%, 14%)
HSVhsv(286, 92%, 25%)
CMYKcmyk(21.9%, 92.2%, 0%, 74.9%)
CIE-LABlab(10.24, 31.43, -26.16)
CIE-LCHlch(10.24, 40.89, 320.23°)
OKLaboklab(24.04% 0.0774 -0.0738)
OKLCHoklch(24.04% 0.107 316.3)
XYZxyz(2.2949, 1.1569, 4.9519)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320540 #134005
analogous
#140540 #320540 #400530
triadic
#320540 #403205 #054032
tetradic
#320540 #401405 #134005 #053040
square
#320540 #401405 #134005 #053040
split-complementary
#320540 #304005 #054014
monochromatic
#16021C #16021C #320540 #5E0979 #8B0EB2

Accessibility & contrast

On white

17.05
#320540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#320540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320540
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320540#FFFFFF#000000##FFFFFF
##3205401.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#311323
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #320540;
/* rgb */ color: rgb(50, 5, 64);
/* oklch */ color: oklch(24.0% 0.107 316.3);
Tailwind
colors: {
  custom: {
    50: '#6d4c75',
    500: '#320540',
    950: '#000000',
  },
}
SCSS
$custom: #320540;
$custom-light: #6d4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#320540",
  "rgb": {
    "r": 50,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 285.763,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24037,
    "c": 0.10692,
    "h": 316.3
  },
  "luminance": 0.01157
}

Semantic roles & 50–950 ramp

primary
#320540
secondary
#378120
accent
#FC2C5D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #320540

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

Preview Lab → · Contrast checker → · Palette generator →

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