#6C317D#6C317D

#6C317D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 42.6% C 0.134 H 318.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#6C317D
RGBrgb(108, 49, 125)
HSLhsl(287, 44%, 34%)
HSVhsv(287, 61%, 49%)
CMYKcmyk(13.6%, 60.8%, 0%, 51%)
CIE-LABlab(31.50, 38.80, -32.07)
CIE-LCHlch(31.50, 50.34, 320.43°)
OKLaboklab(42.6% 0.0997 -0.0895)
OKLCHoklch(42.6% 0.134 318.1)
XYZxyz(10.9838, 6.8659, 20.1447)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C317D #427D31
analogous
#46317D #6C317D #7D3168
triadic
#6C317D #7D6C31 #317D6C
tetradic
#6C317D #7D4631 #427D31 #31687D
square
#6C317D #7D4631 #427D31 #31687D
split-complementary
#6C317D #687D31 #317D46
monochromatic
#200F25 #462051 #6C317D #9242A9 #AE66C3

Accessibility & contrast

On white

8.85
#6C317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#6C317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C317D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C317D#FFFFFF#000000##FFFFFF
##6C317D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#6C3D52
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #6c317d;
/* rgb */ color: rgb(108, 49, 125);
/* oklch */ color: oklch(42.6% 0.134 318.1);
Tailwind
colors: {
  custom: {
    50: '#986da3',
    500: '#6c317d',
    950: '#000000',
  },
}
SCSS
$custom: #6c317d;
$custom-light: #986da3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c317d",
  "rgb": {
    "r": 108,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 286.579,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.13399,
    "h": 318.1
  },
  "luminance": 0.06865
}

Semantic roles & 50–950 ramp

primary
#6C317D
secondary
#70AA60
accent
#D35471
background
#F9F6FA
surface
#F2ECF4
border
#CCC7CE
text
#0E070F
muted
#7E7A7F

Preview Lab

Preview with #6C317D

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

Preview Lab → · Contrast checker → · Palette generator →

#6C317D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva