#6D157C#6D157C

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

Color values

HEX#6D157C
RGBrgb(109, 21, 124)
HSLhsl(291, 71%, 28%)
HSVhsv(291, 83%, 49%)
CMYKcmyk(12.1%, 83.1%, 0%, 51.4%)
CIE-LABlab(27.42, 50.56, -37.95)
CIE-LCHlch(27.42, 63.22, 323.11°)
OKLaboklab(39.68% 0.1322 -0.1064)
OKLCHoklch(39.68% 0.17 321.2)
XYZxyz(10.2125, 5.2434, 19.5390)
Luminance0.0524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D157C #247C15
analogous
#39157C #6D157C #7C1557
triadic
#6D157C #7C6D15 #157C6D
tetradic
#6D157C #7C3915 #247C15 #15577C
square
#6D157C #7C3915 #247C15 #15577C
split-complementary
#6D157C #577C15 #157C39
monochromatic
#17041A #3F0C48 #6D157C #9B1EB0 #C330DC

Accessibility & contrast

On white

10.25
#6D157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6D157C
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D157C#FFFFFF#000000##FFFFFF
##6D157C1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#23447A
Tritanopia (blue-blind)
#6E2C49
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #6d157c;
/* rgb */ color: rgb(109, 21, 124);
/* oklch */ color: oklch(39.7% 0.170 321.2);
Tailwind
colors: {
  custom: {
    50: '#9a5fa2',
    500: '#6d157c',
    950: '#000000',
  },
}
SCSS
$custom: #6d157c;
$custom-light: #9a5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d157c",
  "rgb": {
    "r": 109,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 291.262,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3968,
    "c": 0.16972,
    "h": 321.2
  },
  "luminance": 0.05243
}

Semantic roles & 50–950 ramp

primary
#6D157C
secondary
#4DB13C
accent
#EE3A54
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0E050F
muted
#7E797F

Preview Lab

Preview with #6D157C

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

Preview Lab → · Contrast checker → · Palette generator →

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