#6C126A#6C126A

#6C126A is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.157 H 329.1°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#6C126A
RGBrgb(108, 18, 106)
HSLhsl(301, 71%, 25%)
HSVhsv(301, 83%, 42%)
CMYKcmyk(0%, 83.3%, 1.9%, 57.6%)
CIE-LABlab(25.75, 47.96, -29.10)
CIE-LCHlch(25.75, 56.10, 328.75°)
OKLaboklab(38.08% 0.1349 -0.0806)
OKLCHoklch(38.08% 0.157 329.1)
XYZxyz(9.0021, 4.6621, 14.0586)
Luminance0.0466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C126A #126C14
analogous
#41126C #6C126A #6C123D
triadic
#6C126A #6A6C12 #126A6C
tetradic
#6C126A #6C4112 #126C14 #123D6C
square
#6C126A #6C4112 #126C14 #123D6C
split-complementary
#6C126A #3D6C12 #126C41
monochromatic
#1A041A #380937 #6C126A #A01B9D #D523D1

Accessibility & contrast

On white

10.87
#6C126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#6C126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C126A
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C126A#FFFFFF#000000##FFFFFF
##6C126A1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#2E4168
Tritanopia (blue-blind)
#70213E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #6c126a;
/* rgb */ color: rgb(108, 18, 106);
/* oklch */ color: oklch(38.1% 0.157 329.1);
Tailwind
colors: {
  custom: {
    50: '#995d95',
    500: '#6c126a',
    950: '#000000',
  },
}
SCSS
$custom: #6c126a;
$custom-light: #995d95;
$custom-dark: #000000;
JSON
{
  "hex": "#6c126a",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 301.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.38084,
    "c": 0.15719,
    "h": 329.1
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#6C126A
secondary
#36A339
accent
#EE3E3A
background
#F9F5F9
surface
#F2E9F1
border
#CCC5CB
text
#0E050D
muted
#7E797E

Preview Lab

Preview with #6C126A

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

Preview Lab → · Contrast checker → · Palette generator →

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