#6C157D#6C157D

#6C157D is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.6% C 0.170 H 320.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#6C157D
RGBrgb(108, 21, 125)
HSLhsl(290, 71%, 29%)
HSVhsv(290, 83%, 49%)
CMYKcmyk(13.6%, 83.2%, 0%, 51%)
CIE-LABlab(27.31, 50.55, -38.76)
CIE-LCHlch(27.31, 63.70, 322.52°)
OKLaboklab(39.6% 0.1308 -0.1088)
OKLCHoklch(39.6% 0.17 320.2)
XYZxyz(10.1537, 5.2057, 19.8680)
Luminance0.0520 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C157D #267D15
analogous
#38157D #6C157D #7D155A
triadic
#6C157D #7D6C15 #157D6C
tetradic
#6C157D #7D3815 #267D15 #155A7D
square
#6C157D #7D3815 #267D15 #155A7D
split-complementary
#6C157D #5A7D15 #157D38
monochromatic
#17041A #3F0C49 #6C157D #991EB1 #C030DC

Accessibility & contrast

On white

10.29
#6C157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#6C157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6C157D
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C157D#FFFFFF#000000##FFFFFF
##6C157D1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#20437B
Tritanopia (blue-blind)
#6C2C4A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6c157d;
/* rgb */ color: rgb(108, 21, 125);
/* oklch */ color: oklch(39.6% 0.170 320.2);
Tailwind
colors: {
  custom: {
    50: '#9a5fa3',
    500: '#6c157d',
    950: '#000000',
  },
}
SCSS
$custom: #6c157d;
$custom-light: #9a5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c157d",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 290.192,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.39595,
    "c": 0.17016,
    "h": 320.2
  },
  "luminance": 0.05205
}

Semantic roles & 50–950 ramp

primary
#6C157D
secondary
#4FB23C
accent
#EE3A57
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C157D

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

Preview Lab → · Contrast checker → · Palette generator →

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