#321552#321552

#321552 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.106 H 301.5°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#321552
RGBrgb(50, 21, 82)
HSLhsl(269, 59%, 20%)
HSVhsv(269, 74%, 32%)
CMYKcmyk(39%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.53, 28.25, -31.71)
CIE-LCHlch(14.53, 42.47, 311.70°)
OKLaboklab(27.57% 0.0554 -0.0903)
OKLCHoklch(27.57% 0.106 301.5)
XYZxyz(3.1062, 1.8236, 8.1694)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321552 #355215
analogous
#151652 #321552 #501552
triadic
#321552 #523215 #155232
tetradic
#321552 #521516 #355215 #155250
square
#321552 #521516 #355215 #155250
split-complementary
#321552 #525015 #165215
monochromatic
#0F0618 #140921 #321552 #502183 #6D2EB3

Accessibility & contrast

On white

15.39
#321552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321552
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321552#FFFFFF#000000##FFFFFF
##3215521.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2B2331
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321552;
/* rgb */ color: rgb(50, 21, 82);
/* oklch */ color: oklch(27.6% 0.106 301.5);
Tailwind
colors: {
  custom: {
    50: '#6d5583',
    500: '#321552',
    950: '#000000',
  },
}
SCSS
$custom: #321552;
$custom-light: #6d5583;
$custom-dark: #000000;
JSON
{
  "hex": "#321552",
  "rgb": {
    "r": 50,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 268.525,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27565,
    "c": 0.1059,
    "h": 301.5
  },
  "luminance": 0.01824
}

Semantic roles & 50–950 ramp

primary
#321552
secondary
#638A39
accent
#E24598
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #321552

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

Preview Lab → · Contrast checker → · Palette generator →

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