#321175#321175

#321175 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.153 H 288.6°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#321175
RGBrgb(50, 17, 117)
HSLhsl(260, 75%, 26%)
HSVhsv(260, 85%, 46%)
CMYKcmyk(57.3%, 85.5%, 0%, 54.1%)
CIE-LABlab(17.29, 40.38, -50.37)
CIE-LCHlch(17.29, 64.56, 308.71°)
OKLaboklab(30.55% 0.0489 -0.1449)
OKLCHoklch(30.55% 0.153 288.6)
XYZxyz(4.7258, 2.3631, 17.0333)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#321175 #547511
analogous
#112275 #321175 #641175
triadic
#321175 #753211 #117532
tetradic
#321175 #751122 #547511 #117564
square
#321175 #751122 #547511 #117564
split-complementary
#321175 #756411 #227511
monochromatic
#0B041B #1B0940 #321175 #4919AA #6022DF

Accessibility & contrast

On white

14.26
#321175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#321175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #321175
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##321175#FFFFFF#000000##FFFFFF
##3211751.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002873
Tritanopia (blue-blind)
#162F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #321175;
/* rgb */ color: rgb(50, 17, 117);
/* oklch */ color: oklch(30.6% 0.153 288.6);
Tailwind
colors: {
  custom: {
    50: '#73559e',
    500: '#321175',
    950: '#000000',
  },
}
SCSS
$custom: #321175;
$custom-light: #73559e;
$custom-dark: #000000;
JSON
{
  "hex": "#321175",
  "rgb": {
    "r": 50,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 259.8,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30551,
    "c": 0.15296,
    "h": 288.6
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#321175
secondary
#85AC36
accent
#F137B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #321175

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

Preview Lab → · Contrast checker → · Palette generator →

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