#321982#321982

#321982 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.161 H 284.1°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#321982
RGBrgb(50, 25, 130)
HSLhsl(254, 68%, 30%)
HSVhsv(254, 81%, 51%)
CMYKcmyk(61.5%, 80.8%, 0%, 49%)
CIE-LABlab(19.98, 40.51, -54.23)
CIE-LCHlch(19.98, 67.69, 306.76°)
OKLaboklab(32.84% 0.0391 -0.1563)
OKLCHoklch(32.84% 0.161 284.1)
XYZxyz(5.6910, 2.9847, 21.3910)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321982 #698219
analogous
#193482 #321982 #661982
triadic
#321982 #823219 #198232
tetradic
#321982 #821934 #698219 #198266
square
#321982 #821934 #698219 #198266
split-complementary
#321982 #826619 #348219
monochromatic
#0B051B #1E0F4F #321982 #4623B5 #613CD9

Accessibility & contrast

On white

13.15
#321982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#321982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321982
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321982#FFFFFF#000000##FFFFFF
##3219821.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #321982;
/* rgb */ color: rgb(50, 25, 130);
/* oklch */ color: oklch(32.8% 0.161 284.1);
Tailwind
colors: {
  custom: {
    50: '#755aa7',
    500: '#321982',
    950: '#000000',
  },
}
SCSS
$custom: #321982;
$custom-light: #755aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#321982",
  "rgb": {
    "r": 50,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 254.286,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32842,
    "c": 0.16113,
    "h": 284.1
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#321982
secondary
#9AB641
accent
#EB3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #321982

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

Preview Lab → · Contrast checker → · Palette generator →

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