#321157#321157

#321157 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.118 H 300.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#321157
RGBrgb(50, 17, 87)
HSLhsl(268, 67%, 20%)
HSVhsv(268, 80%, 34%)
CMYKcmyk(42.5%, 80.5%, 0%, 65.9%)
CIE-LABlab(14.21, 31.82, -35.62)
CIE-LCHlch(14.21, 47.76, 311.77°)
OKLaboklab(27.48% 0.0589 -0.1017)
OKLCHoklch(27.48% 0.118 300.1)
XYZxyz(3.2357, 1.7671, 9.1856)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321157 #365711
analogous
#111357 #321157 #551157
triadic
#321157 #573211 #115732
tetradic
#321157 #571113 #365711 #115755
square
#321157 #571113 #365711 #115755
split-complementary
#321157 #575511 #135711
monochromatic
#0F051A #150724 #321157 #4F1B8A #6D25BD

Accessibility & contrast

On white

15.52
#321157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#321157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321157
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321157#FFFFFF#000000##FFFFFF
##3211571.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#292333
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #321157;
/* rgb */ color: rgb(50, 17, 87);
/* oklch */ color: oklch(27.5% 0.118 300.1);
Tailwind
colors: {
  custom: {
    50: '#6e5387',
    500: '#321157',
    950: '#000000',
  },
}
SCSS
$custom: #321157;
$custom-light: #6e5387;
$custom-dark: #000000;
JSON
{
  "hex": "#321157",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 268.286,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27477,
    "c": 0.11754,
    "h": 300.1
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#321157
secondary
#659034
accent
#EA3E99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #321157

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

Preview Lab → · Contrast checker → · Palette generator →

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