#320F4A#320F4A

#320F4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.105 H 307.7°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#320F4A
RGBrgb(50, 15, 74)
HSLhsl(276, 66%, 17%)
HSVhsv(276, 80%, 29%)
CMYKcmyk(32.4%, 79.7%, 0%, 71%)
CIE-LABlab(12.70, 29.28, -29.19)
CIE-LCHlch(12.70, 41.34, 315.09°)
OKLaboklab(26.04% 0.064 -0.0828)
OKLCHoklch(26.04% 0.105 307.7)
XYZxyz(2.7220, 1.5142, 6.6261)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320F4A #274A0F
analogous
#140F4A #320F4A #4A0F45
triadic
#320F4A #4A320F #0F4A32
tetradic
#320F4A #4A140F #274A0F #0F454A
square
#320F4A #4A140F #274A0F #0F454A
split-complementary
#320F4A #454A0F #0F4A14
monochromatic
#110519 #110519 #320F4A #54197D #7724B0

Accessibility & contrast

On white

16.12
#320F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #320F4A
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320F4A#FFFFFF#000000##FFFFFF
##320F4A1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#012149
Tritanopia (blue-blind)
#2E1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #320f4a;
/* rgb */ color: rgb(50, 15, 74);
/* oklch */ color: oklch(26.0% 0.105 307.7);
Tailwind
colors: {
  custom: {
    50: '#6d517d',
    500: '#320f4a',
    950: '#000000',
  },
}
SCSS
$custom: #320f4a;
$custom-light: #6d517d;
$custom-dark: #000000;
JSON
{
  "hex": "#320f4a",
  "rgb": {
    "r": 50,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 275.593,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26042,
    "c": 0.10468,
    "h": 307.7
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#320F4A
secondary
#538430
accent
#E93F84
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #320F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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