#321045#321045

#321045 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.097 H 310.8°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#321045
RGBrgb(50, 16, 69)
HSLhsl(278, 62%, 17%)
HSVhsv(278, 77%, 27%)
CMYKcmyk(27.5%, 76.8%, 0%, 72.9%)
CIE-LABlab(12.47, 27.45, -26.07)
CIE-LCHlch(12.47, 37.86, 316.47°)
OKLaboklab(25.75% 0.0636 -0.0737)
OKLCHoklch(25.75% 0.097 310.8)
XYZxyz(2.5747, 1.4784, 5.7788)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321045 #234510
analogous
#181045 #321045 #45103E
triadic
#321045 #453210 #104532
tetradic
#321045 #451810 #234510 #103E45
square
#321045 #451810 #234510 #103E45
split-complementary
#321045 #3E4510 #104518
monochromatic
#120619 #120619 #321045 #561C77 #7A27A8

Accessibility & contrast

On white

16.21
#321045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#321045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321045
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321045#FFFFFF#000000##FFFFFF
##3210451.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#092144
Tritanopia (blue-blind)
#301B29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #321045;
/* rgb */ color: rgb(50, 16, 69);
/* oklch */ color: oklch(25.8% 0.097 310.8);
Tailwind
colors: {
  custom: {
    50: '#6c5179',
    500: '#321045',
    950: '#000000',
  },
}
SCSS
$custom: #321045;
$custom-light: #6c5179;
$custom-dark: #000000;
JSON
{
  "hex": "#321045",
  "rgb": {
    "r": 50,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 278.491,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2575,
    "c": 0.09731,
    "h": 310.8
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#321045
secondary
#4D7F32
accent
#E5427D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #321045

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

Preview Lab → · Contrast checker → · Palette generator →

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