#320C4A#320C4A

#320C4A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.109 H 308.3°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#320C4A
RGBrgb(50, 12, 74)
HSLhsl(277, 72%, 17%)
HSVhsv(277, 84%, 29%)
CMYKcmyk(32.4%, 83.8%, 0%, 71%)
CIE-LABlab(12.19, 30.72, -30.01)
CIE-LCHlch(12.19, 42.94, 315.67°)
OKLaboklab(25.69% 0.0674 -0.0852)
OKLCHoklch(25.69% 0.109 308.3)
XYZxyz(2.6826, 1.4355, 6.6130)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C4A #244A0C
analogous
#130C4A #320C4A #4A0C43
triadic
#320C4A #4A320C #0C4A32
tetradic
#320C4A #4A130C #244A0C #0C434A
square
#320C4A #4A130C #244A0C #0C434A
split-complementary
#320C4A #434A0C #0C4A13
monochromatic
#12041A #12041A #320C4A #56157F #791DB3

Accessibility & contrast

On white

16.32
#320C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#320C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C4A
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C4A#FFFFFF#000000##FFFFFF
##320C4A1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2E1B2A
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320c4a;
/* rgb */ color: rgb(50, 12, 74);
/* oklch */ color: oklch(25.7% 0.109 308.3);
Tailwind
colors: {
  custom: {
    50: '#6d4f7d',
    500: '#320c4a',
    950: '#000000',
  },
}
SCSS
$custom: #320c4a;
$custom-light: #6d4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#320c4a",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 276.774,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25685,
    "c": 0.10863,
    "h": 308.3
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#320C4A
secondary
#4F862C
accent
#EF397F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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