#321062#321062

#321062 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.132 H 295.4°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#321062
RGBrgb(50, 16, 98)
HSLhsl(265, 72%, 22%)
HSVhsv(265, 84%, 38%)
CMYKcmyk(49%, 83.7%, 0%, 61.6%)
CIE-LABlab(15.12, 35.40, -41.51)
CIE-LCHlch(15.12, 54.56, 310.45°)
OKLaboklab(28.44% 0.0565 -0.119)
OKLCHoklch(28.44% 0.132 295.4)
XYZxyz(3.7047, 1.9304, 11.7303)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321062 #406210
analogous
#101762 #321062 #5B1062
triadic
#321062 #623210 #106232
tetradic
#321062 #621017 #406210 #10625B
square
#321062 #621017 #406210 #10625B
split-complementary
#321062 #625B10 #176210
monochromatic
#0D041A #17072D #321062 #4D1997 #6821CB

Accessibility & contrast

On white

15.15
#321062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#321062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321062
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321062#FFFFFF#000000##FFFFFF
##3210621.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#242739
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #321062;
/* rgb */ color: rgb(50, 16, 98);
/* oklch */ color: oklch(28.4% 0.132 295.4);
Tailwind
colors: {
  custom: {
    50: '#70538f',
    500: '#321062',
    950: '#000000',
  },
}
SCSS
$custom: #321062;
$custom-light: #70538f;
$custom-dark: #000000;
JSON
{
  "hex": "#321062",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 264.878,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2844,
    "c": 0.13175,
    "h": 295.4
  },
  "luminance": 0.01931
}

Semantic roles & 50–950 ramp

primary
#321062
secondary
#709B33
accent
#EF39A3
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321062

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

Preview Lab → · Contrast checker → · Palette generator →

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