#7C156D#7C156D

#7C156D is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.165 H 335.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#7C156D
RGBrgb(124, 21, 109)
HSLhsl(309, 71%, 28%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 83.1%, 12.1%, 51.4%)
CIE-LABlab(29.23, 51.21, -25.34)
CIE-LCHlch(29.23, 57.14, 333.67°)
OKLaboklab(41.19% 0.1497 -0.0694)
OKLCHoklch(41.19% 0.165 335.1)
XYZxyz(11.3408, 5.9266, 15.0117)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C156D #157C24
analogous
#57157C #7C156D #7C1539
triadic
#7C156D #6D7C15 #156D7C
tetradic
#7C156D #7C5715 #157C24 #15397C
square
#7C156D #7C5715 #157C24 #15397C
split-complementary
#7C156D #397C15 #157C57
monochromatic
#1A0417 #480C3F #7C156D #B01E9B #DC30C3

Accessibility & contrast

On white

9.61
#7C156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7C156D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C156D
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C156D#FFFFFF#000000##FFFFFF
##7C156D1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153B6F
Deuteranopia (green-blind)
#3C4A6B
Tritanopia (blue-blind)
#831F41
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c156d;
/* rgb */ color: rgb(124, 21, 109);
/* oklch */ color: oklch(41.2% 0.165 335.1);
Tailwind
colors: {
  custom: {
    50: '#a56197',
    500: '#7c156d',
    950: '#000000',
  },
}
SCSS
$custom: #7c156d;
$custom-light: #a56197;
$custom-dark: #000000;
JSON
{
  "hex": "#7c156d",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 308.738,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41187,
    "c": 0.16501,
    "h": 335.1
  },
  "luminance": 0.05926
}

Semantic roles & 50–950 ramp

primary
#7C156D
secondary
#3CB14D
accent
#EE543A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C156D

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

Preview Lab → · Contrast checker → · Palette generator →

#7C156D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva