#321750#321750

#321750 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.100 H 302.0°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#321750
RGBrgb(50, 23, 80)
HSLhsl(268, 55%, 20%)
HSVhsv(268, 71%, 31%)
CMYKcmyk(37.5%, 71.2%, 0%, 68.6%)
CIE-LABlab(14.79, 26.51, -29.93)
CIE-LCHlch(14.79, 39.98, 311.53°)
OKLaboklab(27.7% 0.0531 -0.085)
OKLCHoklch(27.7% 0.1 302)
XYZxyz(3.0694, 1.8701, 7.7871)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321750 #355017
analogous
#171850 #321750 #4E1750
triadic
#321750 #503217 #175032
tetradic
#321750 #501718 #355017 #17504E
square
#321750 #501718 #355017 #17504E
split-complementary
#321750 #504E17 #185017
monochromatic
#0F0718 #140920 #321750 #502580 #6D32AF

Accessibility & contrast

On white

15.28
#321750 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#321750 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321750
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321750#FFFFFF#000000##FFFFFF
##3217501.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#03254F
Tritanopia (blue-blind)
#2C2431
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #321750;
/* rgb */ color: rgb(50, 23, 80);
/* oklch */ color: oklch(27.7% 0.100 302.0);
Tailwind
colors: {
  custom: {
    50: '#6d5681',
    500: '#321750',
    950: '#000000',
  },
}
SCSS
$custom: #321750;
$custom-light: #6d5681;
$custom-dark: #000000;
JSON
{
  "hex": "#321750",
  "rgb": {
    "r": 50,
    "g": 23,
    "b": 80
  },
  "hsl": {
    "h": 268.421,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27697,
    "c": 0.10026,
    "h": 302
  },
  "luminance": 0.0187
}

Semantic roles & 50–950 ramp

primary
#321750
secondary
#63873C
accent
#DF4998
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #321750

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

Preview Lab → · Contrast checker → · Palette generator →

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