#321159#321159

#321159 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.120 H 299.1°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#321159
RGBrgb(50, 17, 89)
HSLhsl(268, 68%, 21%)
HSVhsv(268, 81%, 35%)
CMYKcmyk(43.8%, 80.9%, 0%, 65.1%)
CIE-LABlab(14.40, 32.38, -36.67)
CIE-LCHlch(14.40, 48.92, 311.45°)
OKLaboklab(27.67% 0.0583 -0.1048)
OKLCHoklch(27.67% 0.12 299.1)
XYZxyz(3.3186, 1.8002, 9.6219)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321159 #385911
analogous
#111459 #321159 #561159
triadic
#321159 #593211 #115932
tetradic
#321159 #591114 #385911 #115956
square
#321159 #591114 #385911 #115956
split-complementary
#321159 #595611 #145911
monochromatic
#0E051A #150726 #321159 #4F1B8C #6C25C0

Accessibility & contrast

On white

15.44
#321159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#321159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321159
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321159#FFFFFF#000000##FFFFFF
##3211591.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#292434
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321159;
/* rgb */ color: rgb(50, 17, 89);
/* oklch */ color: oklch(27.7% 0.120 299.1);
Tailwind
colors: {
  custom: {
    50: '#6e5389',
    500: '#321159',
    950: '#000000',
  },
}
SCSS
$custom: #321159;
$custom-light: #6e5389;
$custom-dark: #000000;
JSON
{
  "hex": "#321159",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 267.5,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27668,
    "c": 0.11994,
    "h": 299.1
  },
  "luminance": 0.018
}

Semantic roles & 50–950 ramp

primary
#321159
secondary
#679234
accent
#EB3D9B
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #321159

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

Preview Lab → · Contrast checker → · Palette generator →

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