#7C137E#7C137E

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

Color values

HEX#7C137E
RGBrgb(124, 19, 126)
HSLhsl(299, 74%, 28%)
HSVhsv(299, 85%, 49%)
CMYKcmyk(1.6%, 84.9%, 0%, 50.6%)
CIE-LABlab(30.05, 54.47, -34.84)
CIE-LCHlch(30.05, 64.66, 327.40°)
OKLaboklab(42.1% 0.151 -0.0969)
OKLCHoklch(42.1% 0.179 327.3)
XYZxyz(12.3108, 6.2581, 20.2942)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C137E #157E13
analogous
#46137E #7C137E #7E134A
triadic
#7C137E #7E7C13 #137E7C
tetradic
#7C137E #7E4613 #157E13 #134A7E
square
#7C137E #7E4613 #157E13 #134A7E
split-complementary
#7C137E #4A7E13 #137E46
monochromatic
#1A041B #480B49 #7C137E #B01BB3 #DC2CDF

Accessibility & contrast

On white

9.33
#7C137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7C137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C137E
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C137E#FFFFFF#000000##FFFFFF
##7C137E1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#80284A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7c137e;
/* rgb */ color: rgb(124, 19, 126);
/* oklch */ color: oklch(42.1% 0.179 327.3);
Tailwind
colors: {
  custom: {
    50: '#a661a4',
    500: '#7c137e',
    950: '#000000',
  },
}
SCSS
$custom: #7c137e;
$custom-light: #a661a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c137e",
  "rgb": {
    "r": 124,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 298.879,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.421,
    "c": 0.17943,
    "h": 327.3
  },
  "luminance": 0.06257
}

Semantic roles & 50–950 ramp

primary
#7C137E
secondary
#3CB439
accent
#F0373B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C137E

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

Preview Lab → · Contrast checker → · Palette generator →

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