#6D1771#6D1771

#6D1771 is a dark, vivid purple. Relative luminance 0.051; OKLCH L 39.1% C 0.159 H 326.1°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#6D1771
RGBrgb(109, 23, 113)
HSLhsl(297, 66%, 27%)
HSVhsv(297, 80%, 44%)
CMYKcmyk(3.5%, 79.6%, 0%, 55.7%)
CIE-LABlab(26.90, 47.90, -31.78)
CIE-LCHlch(26.90, 57.49, 326.44°)
OKLaboklab(39.08% 0.1316 -0.0884)
OKLCHoklch(39.08% 0.159 326.1)
XYZxyz(9.5935, 5.0569, 16.0904)
Luminance0.0506 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D1771 #1B7117
analogous
#401771 #6D1771 #711748
triadic
#6D1771 #716D17 #17716D
tetradic
#6D1771 #714017 #1B7117 #174871
square
#6D1771 #714017 #1B7117 #174871
split-complementary
#6D1771 #487117 #177140
monochromatic
#190519 #3C0D3E #6D1771 #9E21A4 #CD2ED4

Accessibility & contrast

On white

10.44
#6D1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#6D1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D1771
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D1771#FFFFFF#000000##FFFFFF
##6D17711.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#2D436F
Tritanopia (blue-blind)
#702743
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6d1771;
/* rgb */ color: rgb(109, 23, 113);
/* oklch */ color: oklch(39.1% 0.159 326.1);
Tailwind
colors: {
  custom: {
    50: '#9a5f9a',
    500: '#6d1771',
    950: '#000000',
  },
}
SCSS
$custom: #6d1771;
$custom-light: #9a5f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#6d1771",
  "rgb": {
    "r": 109,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 297.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.1585,
    "h": 326.1
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#6D1771
secondary
#42A73D
accent
#E93F46
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6D1771

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

Preview Lab → · Contrast checker → · Palette generator →

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