#320C4C#320C4C

#320C4C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.111 H 307.1°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#320C4C
RGBrgb(50, 12, 76)
HSLhsl(276, 73%, 17%)
HSVhsv(276, 84%, 30%)
CMYKcmyk(34.2%, 84.2%, 0%, 70.2%)
CIE-LABlab(12.37, 31.23, -31.10)
CIE-LCHlch(12.37, 44.08, 315.12°)
OKLaboklab(25.87% 0.0669 -0.0884)
OKLCHoklch(25.87% 0.111 307.1)
XYZxyz(2.7511, 1.4629, 6.9735)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C4C #264C0C
analogous
#120C4C #320C4C #4C0C46
triadic
#320C4C #4C320C #0C4C32
tetradic
#320C4C #4C120C #264C0C #0C464C
square
#320C4C #4C120C #264C0C #0C464C
split-complementary
#320C4C #464C0C #0C4C12
monochromatic
#11041A #11041A #320C4C #551481 #781DB6

Accessibility & contrast

On white

16.25
#320C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320C4C
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C4C#FFFFFF#000000##FFFFFF
##320C4C1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#2E1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320c4c;
/* rgb */ color: rgb(50, 12, 76);
/* oklch */ color: oklch(25.9% 0.111 307.1);
Tailwind
colors: {
  custom: {
    50: '#6d507f',
    500: '#320c4c',
    950: '#000000',
  },
}
SCSS
$custom: #320c4c;
$custom-light: #6d507f;
$custom-dark: #000000;
JSON
{
  "hex": "#320c4c",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 275.625,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25866,
    "c": 0.11087,
    "h": 307.1
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#320C4C
secondary
#51882C
accent
#EF3883
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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