#6C126F#6C126F

#6C126F is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.4% C 0.161 H 326.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#6C126F
RGBrgb(108, 18, 111)
HSLhsl(298, 72%, 25%)
HSVhsv(298, 84%, 44%)
CMYKcmyk(2.7%, 83.8%, 0%, 56.5%)
CIE-LABlab(26.07, 48.83, -31.83)
CIE-LCHlch(26.07, 58.29, 326.90°)
OKLaboklab(38.41% 0.1347 -0.0885)
OKLCHoklch(38.41% 0.161 326.7)
XYZxyz(9.2697, 4.7691, 15.4681)
Luminance0.0477 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C126F #156F12
analogous
#3E126F #6C126F #6F1243
triadic
#6C126F #6F6C12 #126F6C
tetradic
#6C126F #6F3E12 #156F12 #12436F
square
#6C126F #6F3E12 #156F12 #12436F
split-complementary
#6C126F #436F12 #126F3E
monochromatic
#1A041A #39093A #6C126F #9F1BA4 #D223D8

Accessibility & contrast

On white

10.75
#6C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#6C126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C126F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C126F#FFFFFF#000000##FFFFFF
##6C126F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003771
Deuteranopia (green-blind)
#2B416D
Tritanopia (blue-blind)
#6F2441
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #6c126f;
/* rgb */ color: rgb(108, 18, 111);
/* oklch */ color: oklch(38.4% 0.161 326.7);
Tailwind
colors: {
  custom: {
    50: '#9a5d99',
    500: '#6c126f',
    950: '#000000',
  },
}
SCSS
$custom: #6c126f;
$custom-light: #9a5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#6c126f",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 298.065,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.16119,
    "h": 326.7
  },
  "luminance": 0.04768
}

Semantic roles & 50–950 ramp

primary
#6C126F
secondary
#3AA637
accent
#EF393F
background
#F9F5F9
surface
#F2EAF2
border
#CCC6CC
text
#0E050E
muted
#7E797E

Preview Lab

Preview with #6C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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