#6C157C#6C157C

#6C157C is a dark, vivid purple. Relative luminance 0.052; OKLCH L 39.5% C 0.169 H 320.7°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#6C157C
RGBrgb(108, 21, 124)
HSLhsl(291, 71%, 28%)
HSVhsv(291, 83%, 49%)
CMYKcmyk(12.9%, 83.1%, 0%, 51.4%)
CIE-LABlab(27.24, 50.36, -38.24)
CIE-LCHlch(27.24, 63.24, 322.79°)
OKLaboklab(39.52% 0.131 -0.1073)
OKLCHoklch(39.52% 0.169 320.7)
XYZxyz(10.0902, 5.1803, 19.5333)
Luminance0.0518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C157C #257C15
analogous
#39157C #6C157C #7C1558
triadic
#6C157C #7C6C15 #157C6C
tetradic
#6C157C #7C3915 #257C15 #15587C
square
#6C157C #7C3915 #257C15 #15587C
split-complementary
#6C157C #587C15 #157C39
monochromatic
#17041A #3E0C48 #6C157C #9A1EB0 #C130DC

Accessibility & contrast

On white

10.31
#6C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6C157C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C157C#FFFFFF#000000##FFFFFF
##6C157C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#21437A
Tritanopia (blue-blind)
#6D2C49
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #6c157c;
/* rgb */ color: rgb(108, 21, 124);
/* oklch */ color: oklch(39.5% 0.169 320.7);
Tailwind
colors: {
  custom: {
    50: '#9a5fa2',
    500: '#6c157c',
    950: '#000000',
  },
}
SCSS
$custom: #6c157c;
$custom-light: #9a5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#6c157c",
  "rgb": {
    "r": 108,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 290.68,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.16931,
    "h": 320.7
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#6C157C
secondary
#4EB13C
accent
#EE3A56
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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