#321762#321762

#321762 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.3% C 0.124 H 293.8°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#321762
RGBrgb(50, 23, 98)
HSLhsl(262, 62%, 24%)
HSVhsv(262, 77%, 38%)
CMYKcmyk(49%, 76.5%, 0%, 61.6%)
CIE-LABlab(16.37, 31.84, -39.47)
CIE-LCHlch(16.37, 50.71, 308.89°)
OKLaboklab(29.32% 0.0499 -0.1131)
OKLCHoklch(29.32% 0.124 293.8)
XYZxyz(3.8258, 2.1726, 11.7707)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321762 #476217
analogous
#172162 #321762 #571762
triadic
#321762 #623217 #176232
tetradic
#321762 #621721 #476217 #176257
square
#321762 #621721 #476217 #176257
split-complementary
#321762 #625717 #216217
monochromatic
#0D0619 #190B30 #321762 #4B2394 #652EC5

Accessibility & contrast

On white

14.64
#321762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#321762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321762
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321762#FFFFFF#000000##FFFFFF
##3217621.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#242A3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #321762;
/* rgb */ color: rgb(50, 23, 98);
/* oklch */ color: oklch(29.3% 0.124 293.8);
Tailwind
colors: {
  custom: {
    50: '#6f578f',
    500: '#321762',
    950: '#000000',
  },
}
SCSS
$custom: #321762;
$custom-light: #6f578f;
$custom-dark: #000000;
JSON
{
  "hex": "#321762",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 261.6,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29319,
    "c": 0.1236,
    "h": 293.8
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#321762
secondary
#77993C
accent
#E543AB
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #321762

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

Preview Lab → · Contrast checker → · Palette generator →

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