#6C1272#6C1272

#6C1272 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.6% C 0.164 H 325.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#6C1272
RGBrgb(108, 18, 114)
HSLhsl(296, 73%, 26%)
HSVhsv(296, 84%, 45%)
CMYKcmyk(5.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(26.26, 49.36, -33.44)
CIE-LCHlch(26.26, 59.63, 325.88°)
OKLaboklab(38.61% 0.1344 -0.0933)
OKLCHoklch(38.61% 0.164 325.3)
XYZxyz(9.4377, 4.8363, 16.3527)
Luminance0.0484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C1272 #187212
analogous
#3C1272 #6C1272 #721248
triadic
#6C1272 #726C12 #12726C
tetradic
#6C1272 #723C12 #187212 #124872
square
#6C1272 #723C12 #187212 #124872
split-complementary
#6C1272 #487212 #12723C
monochromatic
#19041A #3A0A3D #6C1272 #9E1AA7 #D023DC

Accessibility & contrast

On white

10.68
#6C1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#6C1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C1272
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C1272#FFFFFF#000000##FFFFFF
##6C12721.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#294270
Tritanopia (blue-blind)
#6F2543
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6c1272;
/* rgb */ color: rgb(108, 18, 114);
/* oklch */ color: oklch(38.6% 0.164 325.3);
Tailwind
colors: {
  custom: {
    50: '#9a5d9b',
    500: '#6c1272',
    950: '#000000',
  },
}
SCSS
$custom: #6c1272;
$custom-light: #9a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#6c1272",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 296.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.38614,
    "c": 0.16363,
    "h": 325.3
  },
  "luminance": 0.04836
}

Semantic roles & 50–950 ramp

primary
#6C1272
secondary
#3EA937
accent
#EF3844
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6C1272

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

Preview Lab → · Contrast checker → · Palette generator →

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