#320C57#320C57

#320C57 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.123 H 301.1°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#320C57
RGBrgb(50, 12, 87)
HSLhsl(270, 76%, 19%)
HSVhsv(270, 86%, 34%)
CMYKcmyk(42.5%, 86.2%, 0%, 65.9%)
CIE-LABlab(13.41, 34.13, -36.94)
CIE-LCHlch(13.41, 50.30, 312.74°)
OKLaboklab(26.91% 0.0636 -0.1056)
OKLCHoklch(26.91% 0.123 301.1)
XYZxyz(3.1667, 1.6292, 9.1626)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320C57 #31570C
analogous
#0C0C57 #320C57 #570C57
triadic
#320C57 #57320C #0C5732
tetradic
#320C57 #570C0C #31570C #0C5757
square
#320C57 #570C0C #31570C #0C5757
split-complementary
#320C57 #57570C #0C570C
monochromatic
#0F041B #130521 #320C57 #51138D #701BC3

Accessibility & contrast

On white

15.84
#320C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#320C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320C57
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320C57#FFFFFF#000000##FFFFFF
##320C571.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#2A2132
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #320c57;
/* rgb */ color: rgb(50, 12, 87);
/* oklch */ color: oklch(26.9% 0.123 301.1);
Tailwind
colors: {
  custom: {
    50: '#6f5087',
    500: '#320c57',
    950: '#000000',
  },
}
SCSS
$custom: #320c57;
$custom-light: #6f5087;
$custom-dark: #000000;
JSON
{
  "hex": "#320c57",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 87
  },
  "hsl": {
    "h": 270.4,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26912,
    "c": 0.12326,
    "h": 301.1
  },
  "luminance": 0.01629
}

Semantic roles & 50–950 ramp

primary
#320C57
secondary
#5F922D
accent
#F23593
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #320C57

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

Preview Lab → · Contrast checker → · Palette generator →

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