#321150#321150

#321150 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.109 H 303.7°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#321150
RGBrgb(50, 17, 80)
HSLhsl(271, 65%, 19%)
HSVhsv(271, 79%, 31%)
CMYKcmyk(37.5%, 78.8%, 0%, 68.6%)
CIE-LABlab(13.58, 29.87, -31.89)
CIE-LCHlch(13.58, 43.69, 313.13°)
OKLaboklab(26.83% 0.0605 -0.0908)
OKLCHoklch(26.83% 0.109 303.7)
XYZxyz(2.9635, 1.6582, 7.7518)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321150 #2F5011
analogous
#131150 #321150 #50114F
triadic
#321150 #503211 #115032
tetradic
#321150 #501311 #2F5011 #114F50
square
#321150 #501311 #2F5011 #114F50
split-complementary
#321150 #4F5011 #115013
monochromatic
#100519 #12061E #321150 #521C82 #7126B5

Accessibility & contrast

On white

15.77
#321150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#321150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321150
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321150#FFFFFF#000000##FFFFFF
##3211501.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2C202F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #321150;
/* rgb */ color: rgb(50, 17, 80);
/* oklch */ color: oklch(26.8% 0.109 303.7);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#321150',
    950: '#000000',
  },
}
SCSS
$custom: #321150;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#321150",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 271.429,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26832,
    "c": 0.1091,
    "h": 303.7
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#321150
secondary
#5C8933
accent
#E84090
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #321150

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

Preview Lab → · Contrast checker → · Palette generator →

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