#320C4B#320C4B

#320C4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.8% C 0.110 H 307.7°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#320C4B
RGBrgb(50, 12, 75)
HSLhsl(276, 72%, 17%)
HSVhsv(276, 84%, 29%)
CMYKcmyk(33.3%, 84%, 0%, 70.6%)
CIE-LABlab(12.28, 30.97, -30.56)
CIE-LCHlch(12.28, 43.51, 315.39°)
OKLaboklab(25.78% 0.0671 -0.0868)
OKLCHoklch(25.78% 0.11 307.7)
XYZxyz(2.7166, 1.4491, 6.7918)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C4B #254B0C
analogous
#120C4B #320C4B #4B0C45
triadic
#320C4B #4B320C #0C4B32
tetradic
#320C4B #4B120C #254B0C #0C454B
square
#320C4B #4B120C #254B0C #0C454B
split-complementary
#320C4B #454B0C #0C4B12
monochromatic
#12041A #12041A #320C4B #551480 #781DB5

Accessibility & contrast

On white

16.28
#320C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320C4B
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C4B#FFFFFF#000000##FFFFFF
##320C4B1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2E1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320c4b;
/* rgb */ color: rgb(50, 12, 75);
/* oklch */ color: oklch(25.8% 0.110 307.7);
Tailwind
colors: {
  custom: {
    50: '#6d4f7e',
    500: '#320c4b',
    950: '#000000',
  },
}
SCSS
$custom: #320c4b;
$custom-light: #6d4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#320c4b",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 276.19,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25775,
    "c": 0.10975,
    "h": 307.7
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#320C4B
secondary
#50872C
accent
#EF3981
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #320C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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