#7C158F#7C158F

#7C158F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.191 H 320.5°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#7C158F
RGBrgb(124, 21, 143)
HSLhsl(291, 74%, 32%)
HSVhsv(291, 85%, 56%)
CMYKcmyk(13.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(31.36, 56.98, -43.34)
CIE-LCHlch(31.36, 71.59, 322.74°)
OKLaboklab(43.38% 0.1477 -0.1217)
OKLCHoklch(43.38% 0.191 320.5)
XYZxyz(13.5377, 6.8053, 26.5818)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C158F #288F15
analogous
#3F158F #7C158F #8F1565
triadic
#7C158F #8F7C15 #158F7C
tetradic
#7C158F #8F3F15 #288F15 #15658F
square
#7C158F #8F3F15 #288F15 #15658F
split-complementary
#7C158F #658F15 #158F3F
monochromatic
#1F0524 #4E0D5A #7C158F #AA1DC4 #C83CE2

Accessibility & contrast

On white

8.89
#7C158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7C158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C158F
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C158F#FFFFFF#000000##FFFFFF
##7C158F1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#244D8C
Tritanopia (blue-blind)
#7D3254
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c158f;
/* rgb */ color: rgb(124, 21, 143);
/* oklch */ color: oklch(43.4% 0.191 320.5);
Tailwind
colors: {
  custom: {
    50: '#a663b0',
    500: '#7c158f',
    950: '#000000',
  },
}
SCSS
$custom: #7c158f;
$custom-light: #a663b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c158f",
  "rgb": {
    "r": 124,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 290.656,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43382,
    "c": 0.19137,
    "h": 320.5
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#7C158F
secondary
#52C23E
accent
#F13754
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C158F

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

Preview Lab → · Contrast checker → · Palette generator →

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