#320C48#320C48

#320C48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.106 H 309.6°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#320C48
RGBrgb(50, 12, 72)
HSLhsl(278, 71%, 16%)
HSVhsv(278, 83%, 28%)
CMYKcmyk(30.6%, 83.3%, 0%, 71.8%)
CIE-LABlab(12.02, 30.20, -28.90)
CIE-LCHlch(12.02, 41.80, 316.26°)
OKLaboklab(25.51% 0.0678 -0.0819)
OKLCHoklch(25.51% 0.106 309.6)
XYZxyz(2.6163, 1.4090, 6.2638)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C48 #22480C
analogous
#140C48 #320C48 #480C40
triadic
#320C48 #48320C #0C4832
tetradic
#320C48 #48140C #22480C #0C4048
square
#320C48 #48140C #22480C #0C4048
split-complementary
#320C48 #40480C #0C4814
monochromatic
#12041A #12041A #320C48 #56157C #7B1DB1

Accessibility & contrast

On white

16.38
#320C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#320C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C48
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C48#FFFFFF#000000##FFFFFF
##320C481.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#2F1A29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #320c48;
/* rgb */ color: rgb(50, 12, 72);
/* oklch */ color: oklch(25.5% 0.106 309.6);
Tailwind
colors: {
  custom: {
    50: '#6d4f7b',
    500: '#320c48',
    950: '#000000',
  },
}
SCSS
$custom: #320c48;
$custom-light: #6d4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#320c48",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 278,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25507,
    "c": 0.10637,
    "h": 309.6
  },
  "luminance": 0.01409
}

Semantic roles & 50–950 ramp

primary
#320C48
secondary
#4C842C
accent
#EE3A7C
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #320C48

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

Preview Lab → · Contrast checker → · Palette generator →

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