#7C156B#7C156B

#7C156B is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.1% C 0.164 H 336.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#7C156B
RGBrgb(124, 21, 107)
HSLhsl(310, 71%, 28%)
HSVhsv(310, 83%, 49%)
CMYKcmyk(0%, 83.1%, 13.7%, 51.4%)
CIE-LABlab(29.12, 50.91, -24.23)
CIE-LCHlch(29.12, 56.38, 334.55°)
OKLaboklab(41.07% 0.1496 -0.0661)
OKLCHoklch(41.07% 0.164 336.1)
XYZxyz(11.2344, 5.8840, 14.4511)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C156B #157C26
analogous
#59157C #7C156B #7C1537
triadic
#7C156B #6B7C15 #156B7C
tetradic
#7C156B #7C5915 #157C26 #15377C
square
#7C156B #7C5915 #157C26 #15377C
split-complementary
#7C156B #377C15 #157C59
monochromatic
#1A0417 #480C3E #7C156B #B01E98 #DC30BF

Accessibility & contrast

On white

9.65
#7C156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#7C156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C156B
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C156B#FFFFFF#000000##FFFFFF
##7C156B1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173B6D
Deuteranopia (green-blind)
#3D4A69
Tritanopia (blue-blind)
#831E40
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c156b;
/* rgb */ color: rgb(124, 21, 107);
/* oklch */ color: oklch(41.1% 0.164 336.1);
Tailwind
colors: {
  custom: {
    50: '#a56195',
    500: '#7c156b',
    950: '#000000',
  },
}
SCSS
$custom: #7c156b;
$custom-light: #a56195;
$custom-dark: #000000;
JSON
{
  "hex": "#7c156b",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 309.903,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41074,
    "c": 0.16358,
    "h": 336.1
  },
  "luminance": 0.05883
}

Semantic roles & 50–950 ramp

primary
#7C156B
secondary
#3CB14F
accent
#EE583A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C156B

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

Preview Lab → · Contrast checker → · Palette generator →

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