#6D157F#6D157F

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

Color values

HEX#6D157F
RGBrgb(109, 21, 127)
HSLhsl(290, 72%, 29%)
HSVhsv(290, 83%, 50%)
CMYKcmyk(14.2%, 83.5%, 0%, 50.2%)
CIE-LABlab(27.63, 51.13, -39.51)
CIE-LCHlch(27.63, 64.62, 322.31°)
OKLaboklab(39.9% 0.1318 -0.111)
OKLCHoklch(39.9% 0.172 319.9)
XYZxyz(10.4051, 5.3204, 20.5534)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D157F #277F15
analogous
#38157F #6D157F #7F155C
triadic
#6D157F #7F6D15 #157F6D
tetradic
#6D157F #7F3815 #277F15 #155C7F
square
#6D157F #7F3815 #277F15 #155C7F
split-complementary
#6D157F #5C7F15 #157F38
monochromatic
#17041A #400C4A #6D157F #9A1EB4 #C031DD

Accessibility & contrast

On white

10.17
#6D157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#6D157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6D157F
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D157F#FFFFFF#000000##FFFFFF
##6D157F1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#20447D
Tritanopia (blue-blind)
#6D2D4B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6d157f;
/* rgb */ color: rgb(109, 21, 127);
/* oklch */ color: oklch(39.9% 0.172 319.9);
Tailwind
colors: {
  custom: {
    50: '#9b5fa5',
    500: '#6d157f',
    950: '#000000',
  },
}
SCSS
$custom: #6d157f;
$custom-light: #9b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#6d157f",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 289.811,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39897,
    "c": 0.17227,
    "h": 319.9
  },
  "luminance": 0.0532
}

Semantic roles & 50–950 ramp

primary
#6D157F
secondary
#50B43C
accent
#EE3958
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6D157F

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

Preview Lab → · Contrast checker → · Palette generator →

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