#6F1771#6F1771

#6F1771 is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.4% C 0.159 H 327.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#6F1771
RGBrgb(111, 23, 113)
HSLhsl(299, 66%, 27%)
HSVhsv(299, 80%, 44%)
CMYKcmyk(1.8%, 79.6%, 0%, 55.7%)
CIE-LABlab(27.26, 48.35, -31.18)
CIE-LCHlch(27.26, 57.53, 327.18°)
OKLaboklab(39.4% 0.1339 -0.0866)
OKLCHoklch(39.4% 0.159 327.1)
XYZxyz(9.8424, 5.1853, 16.1020)
Luminance0.0519 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F1771 #197117
analogous
#421771 #6F1771 #711746
triadic
#6F1771 #716F17 #17716F
tetradic
#6F1771 #714217 #197117 #174671
square
#6F1771 #714217 #197117 #174671
split-complementary
#6F1771 #467117 #177142
monochromatic
#190519 #3D0D3E #6F1771 #A121A4 #D12ED4

Accessibility & contrast

On white

10.31
#6F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6F1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F1771
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F1771#FFFFFF#000000##FFFFFF
##6F17711.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6f1771;
/* rgb */ color: rgb(111, 23, 113);
/* oklch */ color: oklch(39.4% 0.159 327.1);
Tailwind
colors: {
  custom: {
    50: '#9c609a',
    500: '#6f1771',
    950: '#000000',
  },
}
SCSS
$custom: #6f1771;
$custom-light: #9c609a;
$custom-dark: #000000;
JSON
{
  "hex": "#6f1771",
  "rgb": {
    "r": 111,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 298.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.39402,
    "c": 0.15947,
    "h": 327.1
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#6F1771
secondary
#3FA73D
accent
#E93F42
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0F050E
muted
#7E797E

Preview Lab

Preview with #6F1771

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

Preview Lab → · Contrast checker → · Palette generator →

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