#320C4F#320C4F

#320C4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.114 H 305.3°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#320C4F
RGBrgb(50, 12, 79)
HSLhsl(274, 74%, 18%)
HSVhsv(274, 85%, 31%)
CMYKcmyk(36.7%, 84.8%, 0%, 69%)
CIE-LABlab(12.64, 32.01, -32.73)
CIE-LCHlch(12.64, 45.78, 314.37°)
OKLaboklab(26.14% 0.0661 -0.0932)
OKLCHoklch(26.14% 0.114 305.3)
XYZxyz(2.8578, 1.5056, 7.5357)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C4F #294F0C
analogous
#110C4F #320C4F #4F0C4A
triadic
#320C4F #4F320C #0C4F32
tetradic
#320C4F #4F110C #294F0C #0C4A4F
square
#320C4F #4F110C #294F0C #0C4A4F
split-complementary
#320C4F #4A4F0C #0C4F11
monochromatic
#11041B #11041B #320C4F #541484 #751CB9

Accessibility & contrast

On white

16.14
#320C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#320C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C4F
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C4F#FFFFFF#000000##FFFFFF
##320C4F1.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2D1D2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320c4f;
/* rgb */ color: rgb(50, 12, 79);
/* oklch */ color: oklch(26.1% 0.114 305.3);
Tailwind
colors: {
  custom: {
    50: '#6e5081',
    500: '#320c4f',
    950: '#000000',
  },
}
SCSS
$custom: #320c4f;
$custom-light: #6e5081;
$custom-dark: #000000;
JSON
{
  "hex": "#320c4f",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 274.03,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26143,
    "c": 0.11425,
    "h": 305.3
  },
  "luminance": 0.01506
}

Semantic roles & 50–950 ramp

primary
#320C4F
secondary
#558B2C
accent
#F03887
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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