#321876#321876

#321876 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.147 H 287.2°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#321876
RGBrgb(50, 24, 118)
HSLhsl(257, 66%, 28%)
HSVhsv(257, 80%, 46%)
CMYKcmyk(57.6%, 79.7%, 0%, 53.7%)
CIE-LABlab(18.54, 37.37, -48.96)
CIE-LCHlch(18.54, 61.59, 307.35°)
OKLaboklab(31.45% 0.0435 -0.1409)
OKLCHoklch(31.45% 0.147 287.2)
XYZxyz(4.9111, 2.6391, 17.3867)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321876 #5C7618
analogous
#182D76 #321876 #611876
triadic
#321876 #763218 #187632
tetradic
#321876 #76182D #5C7618 #187661
square
#321876 #76182D #5C7618 #187661
split-complementary
#321876 #766118 #2D7618
monochromatic
#0B0519 #1C0E43 #321876 #4822A9 #6033D5

Accessibility & contrast

On white

13.75
#321876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#321876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321876
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321876#FFFFFF#000000##FFFFFF
##3218761.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#143346
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #321876;
/* rgb */ color: rgb(50, 24, 118);
/* oklch */ color: oklch(31.4% 0.147 287.2);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#321876',
    950: '#000000',
  },
}
SCSS
$custom: #321876;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#321876",
  "rgb": {
    "r": 50,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 256.596,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3145,
    "c": 0.14747,
    "h": 287.2
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#321876
secondary
#8DAB3F
accent
#E93FBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321876

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

Preview Lab → · Contrast checker → · Palette generator →

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