#321154#321154

#321154 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.114 H 301.5°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#321154
RGBrgb(50, 17, 84)
HSLhsl(270, 66%, 20%)
HSVhsv(270, 80%, 33%)
CMYKcmyk(40.5%, 79.8%, 0%, 67.1%)
CIE-LABlab(13.94, 30.98, -34.04)
CIE-LCHlch(13.94, 46.02, 312.30°)
OKLaboklab(27.2% 0.0596 -0.0971)
OKLCHoklch(27.2% 0.114 301.5)
XYZxyz(3.1157, 1.7191, 8.5535)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321154 #335411
analogous
#111254 #321154 #541154
triadic
#321154 #543211 #115432
tetradic
#321154 #541112 #335411 #115454
square
#321154 #541112 #335411 #115454
split-complementary
#321154 #545411 #125411
monochromatic
#0F0519 #140721 #321154 #501B87 #6F26BA

Accessibility & contrast

On white

15.63
#321154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#321154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321154
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321154#FFFFFF#000000##FFFFFF
##3211541.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#2B2231
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321154;
/* rgb */ color: rgb(50, 17, 84);
/* oklch */ color: oklch(27.2% 0.114 301.5);
Tailwind
colors: {
  custom: {
    50: '#6e5385',
    500: '#321154',
    950: '#000000',
  },
}
SCSS
$custom: #321154;
$custom-light: #6e5385;
$custom-dark: #000000;
JSON
{
  "hex": "#321154",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 269.552,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27197,
    "c": 0.11393,
    "h": 301.5
  },
  "luminance": 0.01719
}

Semantic roles & 50–950 ramp

primary
#321154
secondary
#618D34
accent
#E93F95
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #321154

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

Preview Lab → · Contrast checker → · Palette generator →

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