#7C156E#7C156E

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

Color values

HEX#7C156E
RGBrgb(124, 21, 110)
HSLhsl(308, 71%, 28%)
HSVhsv(308, 83%, 49%)
CMYKcmyk(0%, 83.1%, 11.3%, 51.4%)
CIE-LABlab(29.28, 51.37, -25.90)
CIE-LCHlch(29.28, 57.53, 333.24°)
OKLaboklab(41.25% 0.1498 -0.071)
OKLCHoklch(41.25% 0.166 334.7)
XYZxyz(11.3950, 5.9482, 15.2968)
Luminance0.0595 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C156E #157C23
analogous
#56157C #7C156E #7C153A
triadic
#7C156E #6E7C15 #156E7C
tetradic
#7C156E #7C5615 #157C23 #153A7C
square
#7C156E #7C5615 #157C23 #153A7C
split-complementary
#7C156E #3A7C15 #157C56
monochromatic
#1A0417 #480C40 #7C156E #B01E9C #DC30C4

Accessibility & contrast

On white

9.59
#7C156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C156E
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C156E#FFFFFF#000000##FFFFFF
##7C156E1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B70
Deuteranopia (green-blind)
#3C4A6C
Tritanopia (blue-blind)
#822041
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7c156e;
/* rgb */ color: rgb(124, 21, 110);
/* oklch */ color: oklch(41.2% 0.166 334.7);
Tailwind
colors: {
  custom: {
    50: '#a56198',
    500: '#7c156e',
    950: '#000000',
  },
}
SCSS
$custom: #7c156e;
$custom-light: #a56198;
$custom-dark: #000000;
JSON
{
  "hex": "#7c156e",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 308.155,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41245,
    "c": 0.16574,
    "h": 334.7
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#7C156E
secondary
#3CB14C
accent
#EE523A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C156E

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

Preview Lab → · Contrast checker → · Palette generator →

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