#321862#321862

#321862 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.122 H 293.5°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#321862
RGBrgb(50, 24, 98)
HSLhsl(261, 61%, 24%)
HSVhsv(261, 76%, 38%)
CMYKcmyk(49%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.57, 31.28, -39.14)
CIE-LCHlch(16.57, 50.10, 308.63°)
OKLaboklab(29.46% 0.0489 -0.1121)
OKLCHoklch(29.46% 0.122 293.5)
XYZxyz(3.8460, 2.2131, 11.7774)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321862 #486218
analogous
#182362 #321862 #571862
triadic
#321862 #623218 #186232
tetradic
#321862 #621823 #486218 #186257
square
#321862 #621823 #486218 #186257
split-complementary
#321862 #625718 #236218
monochromatic
#0D0619 #190C31 #321862 #4B2493 #6430C4

Accessibility & contrast

On white

14.56
#321862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#321862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321862
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321862#FFFFFF#000000##FFFFFF
##3218621.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#242B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321862;
/* rgb */ color: rgb(50, 24, 98);
/* oklch */ color: oklch(29.5% 0.122 293.5);
Tailwind
colors: {
  custom: {
    50: '#6f578f',
    500: '#321862',
    950: '#000000',
  },
}
SCSS
$custom: #321862;
$custom-light: #6f578f;
$custom-dark: #000000;
JSON
{
  "hex": "#321862",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 261.081,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2946,
    "c": 0.1223,
    "h": 293.5
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#321862
secondary
#78983E
accent
#E444AC
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321862

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

Preview Lab → · Contrast checker → · Palette generator →

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