#6C157F#6C157F

#6C157F is a dark, vivid purple. Relative luminance 0.053; OKLCH L 39.7% C 0.172 H 319.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#6C157F
RGBrgb(108, 21, 127)
HSLhsl(289, 72%, 29%)
HSVhsv(289, 83%, 50%)
CMYKcmyk(15%, 83.5%, 0%, 50.2%)
CIE-LABlab(27.46, 50.94, -39.79)
CIE-LCHlch(27.46, 64.64, 322.00°)
OKLaboklab(39.74% 0.1305 -0.1119)
OKLCHoklch(39.74% 0.172 319.4)
XYZxyz(10.2828, 5.2573, 20.5477)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C157F #287F15
analogous
#37157F #6C157F #7F155D
triadic
#6C157F #7F6C15 #157F6C
tetradic
#6C157F #7F3715 #287F15 #155D7F
square
#6C157F #7F3715 #287F15 #155D7F
split-complementary
#6C157F #5D7F15 #157F37
monochromatic
#16041A #3F0C4A #6C157F #991EB4 #BE31DD

Accessibility & contrast

On white

10.24
#6C157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#6C157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C157F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C157F#FFFFFF#000000##FFFFFF
##6C157F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#1E447D
Tritanopia (blue-blind)
#6C2D4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6c157f;
/* rgb */ color: rgb(108, 21, 127);
/* oklch */ color: oklch(39.7% 0.172 319.4);
Tailwind
colors: {
  custom: {
    50: '#9a5fa5',
    500: '#6c157f',
    950: '#000000',
  },
}
SCSS
$custom: #6c157f;
$custom-light: #9a5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#6c157f",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 289.245,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39741,
    "c": 0.17188,
    "h": 319.4
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#6C157F
secondary
#51B43C
accent
#EE395A
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C157F

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

Preview Lab → · Contrast checker → · Palette generator →

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