#320C45#320C45

#320C45 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.2% C 0.103 H 311.6°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#320C45
RGBrgb(50, 12, 69)
HSLhsl(280, 70%, 16%)
HSVhsv(280, 83%, 27%)
CMYKcmyk(27.5%, 82.6%, 0%, 72.9%)
CIE-LABlab(11.76, 29.45, -27.22)
CIE-LCHlch(11.76, 40.10, 317.25°)
OKLaboklab(25.25% 0.0684 -0.077)
OKLCHoklch(25.25% 0.103 311.6)
XYZxyz(2.5208, 1.3708, 5.7609)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C45 #1F450C
analogous
#150C45 #320C45 #450C3B
triadic
#320C45 #45320C #0C4532
tetradic
#320C45 #45150C #1F450C #0C3B45
square
#320C45 #45150C #1F450C #0C3B45
split-complementary
#320C45 #3B450C #0C4515
monochromatic
#13051A #13051A #320C45 #581579 #7E1EAD

Accessibility & contrast

On white

16.48
#320C45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#320C45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C45
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C45#FFFFFF#000000##FFFFFF
##320C451.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#042044
Tritanopia (blue-blind)
#301928
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #320c45;
/* rgb */ color: rgb(50, 12, 69);
/* oklch */ color: oklch(25.2% 0.103 311.6);
Tailwind
colors: {
  custom: {
    50: '#6d4f79',
    500: '#320c45',
    950: '#000000',
  },
}
SCSS
$custom: #320c45;
$custom-light: #6d4f79;
$custom-dark: #000000;
JSON
{
  "hex": "#320c45",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 69
  },
  "hsl": {
    "h": 280,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25245,
    "c": 0.10301,
    "h": 311.6
  },
  "luminance": 0.01371
}

Semantic roles & 50–950 ramp

primary
#320C45
secondary
#48812C
accent
#ED3B76
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #320C45

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

Preview Lab → · Contrast checker → · Palette generator →

#320C45 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva