#321173#321173

#321173 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.151 H 289.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#321173
RGBrgb(50, 17, 115)
HSLhsl(260, 74%, 26%)
HSVhsv(260, 85%, 45%)
CMYKcmyk(56.5%, 85.2%, 0%, 54.9%)
CIE-LABlab(17.07, 39.80, -49.44)
CIE-LCHlch(17.07, 63.47, 308.83°)
OKLaboklab(30.33% 0.0496 -0.1422)
OKLCHoklch(30.33% 0.151 289.2)
XYZxyz(4.6094, 2.3166, 16.4206)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321173 #527311
analogous
#112173 #321173 #631173
triadic
#321173 #733211 #117332
tetradic
#321173 #731121 #527311 #117363
square
#321173 #731121 #527311 #117363
split-complementary
#321173 #736311 #217311
monochromatic
#0C041B #1B093E #321173 #4919A8 #6021DE

Accessibility & contrast

On white

14.35
#321173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#321173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321173
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321173#FFFFFF#000000##FFFFFF
##3211731.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#182F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321173;
/* rgb */ color: rgb(50, 17, 115);
/* oklch */ color: oklch(30.3% 0.151 289.2);
Tailwind
colors: {
  custom: {
    50: '#73559c',
    500: '#321173',
    950: '#000000',
  },
}
SCSS
$custom: #321173;
$custom-light: #73559c;
$custom-dark: #000000;
JSON
{
  "hex": "#321173",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 260.204,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30334,
    "c": 0.15064,
    "h": 289.2
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#321173
secondary
#83AA36
accent
#F137B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321173

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

Preview Lab → · Contrast checker → · Palette generator →

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