#6F1172#6F1172

#6F1172 is a dark, vivid purple. Relative luminance 0.050; OKLCH L 39.0% C 0.166 H 326.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#6F1172
RGBrgb(111, 17, 114)
HSLhsl(298, 74%, 26%)
HSVhsv(298, 85%, 45%)
CMYKcmyk(2.6%, 85.1%, 0%, 55.3%)
CIE-LABlab(26.72, 50.25, -32.68)
CIE-LCHlch(26.72, 59.94, 326.97°)
OKLaboklab(39.04% 0.1387 -0.0909)
OKLCHoklch(39.04% 0.166 326.7)
XYZxyz(9.7931, 4.9960, 16.3649)
Luminance0.0500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6F1172 #147211
analogous
#3E1172 #6F1172 #721144
triadic
#6F1172 #726F11 #11726F
tetradic
#6F1172 #723E11 #147211 #114472
square
#6F1172 #723E11 #147211 #114472
split-complementary
#6F1172 #447211 #11723E
monochromatic
#1A041B #3B093D #6F1172 #A319A7 #D721DD

Accessibility & contrast

On white

10.51
#6F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#6F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6F1172
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6F1172#FFFFFF#000000##FFFFFF
##6F11721.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#2C4370
Tritanopia (blue-blind)
#722443
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #6f1172;
/* rgb */ color: rgb(111, 17, 114);
/* oklch */ color: oklch(39.0% 0.166 326.7);
Tailwind
colors: {
  custom: {
    50: '#9c5e9b',
    500: '#6f1172',
    950: '#000000',
  },
}
SCSS
$custom: #6f1172;
$custom-light: #9c5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6f1172",
  "rgb": {
    "r": 111,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 298.144,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.39044,
    "c": 0.16582,
    "h": 326.7
  },
  "luminance": 0.04995
}

Semantic roles & 50–950 ramp

primary
#6F1172
secondary
#39A936
accent
#F1373D
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0F050E
muted
#7E797E

Preview Lab

Preview with #6F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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