#6C118E#6C118E

#6C118E is a dark, vivid purple. Relative luminance 0.055; OKLCH L 40.6% C 0.188 H 313.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#6C118E
RGBrgb(108, 17, 142)
HSLhsl(284, 79%, 31%)
HSVhsv(284, 88%, 56%)
CMYKcmyk(23.9%, 88%, 0%, 44.3%)
CIE-LABlab(28.23, 54.98, -47.92)
CIE-LCHlch(28.23, 72.93, 318.92°)
OKLaboklab(40.64% 0.13 -0.1357)
OKLCHoklch(40.64% 0.188 313.8)
XYZxyz(11.2664, 5.5424, 26.0623)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C118E #338E11
analogous
#2D118E #6C118E #8E1171
triadic
#6C118E #8E6C11 #118E6C
tetradic
#6C118E #8E2D11 #338E11 #11718E
square
#6C118E #8E2D11 #338E11 #11718E
split-complementary
#6C118E #718E11 #118E2D
monochromatic
#190421 #420A57 #6C118E #9618C5 #B633E7

Accessibility & contrast

On white

9.96
#6C118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#6C118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C118E
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C118E#FFFFFF#000000##FFFFFF
##6C118E1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#683353
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #6c118e;
/* rgb */ color: rgb(108, 17, 142);
/* oklch */ color: oklch(40.6% 0.188 313.8);
Tailwind
colors: {
  custom: {
    50: '#9b5fb0',
    500: '#6c118e',
    950: '#000000',
  },
}
SCSS
$custom: #6c118e;
$custom-light: #9b5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c118e",
  "rgb": {
    "r": 108,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 283.68,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40639,
    "c": 0.18792,
    "h": 313.8
  },
  "luminance": 0.05542
}

Semantic roles & 50–950 ramp

primary
#6C118E
secondary
#5EC238
accent
#F53368
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0F0511
muted
#7E7980

Preview Lab

Preview with #6C118E

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

Preview Lab → · Contrast checker → · Palette generator →

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