#320CAA#320CAA

#320CAA is a dark, highly saturated violet. Relative luminance 0.038; OKLCH L 36.4% C 0.215 H 277.9°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#320CAA
RGBrgb(50, 12, 170)
HSLhsl(254, 87%, 36%)
HSVhsv(254, 93%, 67%)
CMYKcmyk(70.6%, 92.9%, 0%, 33.3%)
CIE-LABlab(23.14, 56.61, -73.70)
CIE-LCHlch(23.14, 92.93, 307.53°)
OKLaboklab(36.38% 0.0294 -0.2127)
OKLCHoklch(36.38% 0.215 277.9)
XYZxyz(8.7002, 3.8425, 38.3056)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#320CAA #84AA0C
analogous
#0C35AA #320CAA #810CAA
triadic
#320CAA #AA320C #0CAA32
tetradic
#320CAA #AA0C35 #84AA0C #0CAA81
square
#320CAA #AA0C35 #84AA0C #0CAA81
split-complementary
#320CAA #AA810C #35AA0C
monochromatic
#100438 #210871 #320CAA #4310E3 #6A3FF1

Accessibility & contrast

On white

11.87
#320CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#320CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #320CAA
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##320CAA#FFFFFF#000000##FFFFFF
##320CAA1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DAE
Deuteranopia (green-blind)
#0031A8
Tritanopia (blue-blind)
#004563
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #320caa;
/* rgb */ color: rgb(50, 12, 170);
/* oklch */ color: oklch(36.4% 0.215 277.9);
Tailwind
colors: {
  custom: {
    50: '#7e58c5',
    500: '#320caa',
    950: '#000000',
  },
}
SCSS
$custom: #320caa;
$custom-light: #7e58c5;
$custom-dark: #000000;
JSON
{
  "hex": "#320caa",
  "rgb": {
    "r": 50,
    "g": 12,
    "b": 170
  },
  "hsl": {
    "h": 254.43,
    "s": 86.813,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36381,
    "c": 0.21472,
    "h": 277.9
  },
  "luminance": 0.03843
}

Semantic roles & 50–950 ramp

primary
#320CAA
secondary
#AED141
accent
#FD2BCA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0413
muted
#7D7982

Preview Lab

Preview with #320CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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