#7C157E#7C157E

#7C157E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.178 H 327.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7C157E
RGBrgb(124, 21, 126)
HSLhsl(299, 71%, 29%)
HSVhsv(299, 83%, 49%)
CMYKcmyk(1.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(30.23, 53.97, -34.56)
CIE-LCHlch(30.23, 64.09, 327.36°)
OKLaboklab(42.22% 0.1496 -0.0961)
OKLCHoklch(42.22% 0.178 327.3)
XYZxyz(12.3461, 6.3287, 20.3059)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C157E #177E15
analogous
#48157E #7C157E #7E154C
triadic
#7C157E #7E7C15 #157E7C
tetradic
#7C157E #7E4815 #177E15 #154C7E
square
#7C157E #7E4815 #177E15 #154C7E
split-complementary
#7C157E #4C7E15 #157E48
monochromatic
#1A041A #480C4A #7C157E #B01EB2 #D931DD

Accessibility & contrast

On white

9.27
#7C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7C157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C157E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C157E#FFFFFF#000000##FFFFFF
##7C157E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#334C7C
Tritanopia (blue-blind)
#80294B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c157e;
/* rgb */ color: rgb(124, 21, 126);
/* oklch */ color: oklch(42.2% 0.178 327.3);
Tailwind
colors: {
  custom: {
    50: '#a662a4',
    500: '#7c157e',
    950: '#000000',
  },
}
SCSS
$custom: #7c157e;
$custom-light: #a662a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c157e",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 298.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42222,
    "c": 0.17782,
    "h": 327.3
  },
  "luminance": 0.06328
}

Semantic roles & 50–950 ramp

primary
#7C157E
secondary
#3EB33C
accent
#EE3A3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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