#321152#321152

#321152 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.112 H 302.6°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#321152
RGBrgb(50, 17, 82)
HSLhsl(270, 66%, 19%)
HSVhsv(270, 79%, 32%)
CMYKcmyk(39%, 79.3%, 0%, 67.8%)
CIE-LABlab(13.76, 30.42, -32.97)
CIE-LCHlch(13.76, 44.86, 312.70°)
OKLaboklab(27.01% 0.0601 -0.094)
OKLCHoklch(27.01% 0.112 302.6)
XYZxyz(3.0385, 1.6882, 8.1468)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321152 #315211
analogous
#121152 #321152 #521152
triadic
#321152 #523211 #115232
tetradic
#321152 #521211 #315211 #115252
square
#321152 #521211 #315211 #115252
split-complementary
#321152 #525211 #115212
monochromatic
#0F0519 #13061F #321152 #511C85 #7026B7

Accessibility & contrast

On white

15.70
#321152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#321152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321152
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321152#FFFFFF#000000##FFFFFF
##3211521.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2B2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321152;
/* rgb */ color: rgb(50, 17, 82);
/* oklch */ color: oklch(27.0% 0.112 302.6);
Tailwind
colors: {
  custom: {
    50: '#6e5283',
    500: '#321152',
    950: '#000000',
  },
}
SCSS
$custom: #321152;
$custom-light: #6e5283;
$custom-dark: #000000;
JSON
{
  "hex": "#321152",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 270.462,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27013,
    "c": 0.11152,
    "h": 302.6
  },
  "luminance": 0.01688
}

Semantic roles & 50–950 ramp

primary
#321152
secondary
#5F8B34
accent
#E93F93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #321152

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

Preview Lab → · Contrast checker → · Palette generator →

#321152 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva