#6C128F#6C128F

#6C128F is a dark, vivid purple. Relative luminance 0.056; OKLCH L 40.8% C 0.188 H 313.3°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#6C128F
RGBrgb(108, 18, 143)
HSLhsl(283, 78%, 32%)
HSVhsv(283, 87%, 56%)
CMYKcmyk(24.5%, 87.4%, 0%, 43.9%)
CIE-LABlab(28.39, 54.93, -48.28)
CIE-LCHlch(28.39, 73.13, 318.69°)
OKLaboklab(40.78% 0.1291 -0.1368)
OKLCHoklch(40.78% 0.188 313.3)
XYZxyz(11.3577, 5.6043, 26.4647)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C128F #358F12
analogous
#2E128F #6C128F #8F1274
triadic
#6C128F #8F6C12 #128F6C
tetradic
#6C128F #8F2E12 #358F12 #12748F
square
#6C128F #8F2E12 #358F12 #12748F
split-complementary
#6C128F #748F12 #128F2E
monochromatic
#1A0422 #430B59 #6C128F #9519C5 #B436E6

Accessibility & contrast

On white

9.90
#6C128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#6C128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C128F
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C128F#FFFFFF#000000##FFFFFF
##6C128F1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#683454
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c128f;
/* rgb */ color: rgb(108, 18, 143);
/* oklch */ color: oklch(40.8% 0.188 313.3);
Tailwind
colors: {
  custom: {
    50: '#9b5fb1',
    500: '#6c128f',
    950: '#000000',
  },
}
SCSS
$custom: #6c128f;
$custom-light: #9b5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#6c128f",
  "rgb": {
    "r": 108,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 283.2,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40778,
    "c": 0.18807,
    "h": 313.3
  },
  "luminance": 0.05604
}

Semantic roles & 50–950 ramp

primary
#6C128F
secondary
#60C33A
accent
#F4346A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0F0511
muted
#7E7A80

Preview Lab

Preview with #6C128F

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

Preview Lab → · Contrast checker → · Palette generator →

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