#7C188D#7C188D

#7C188D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.187 H 321.1°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7C188D
RGBrgb(124, 24, 141)
HSLhsl(291, 71%, 32%)
HSVhsv(291, 83%, 55%)
CMYKcmyk(12.1%, 83%, 0%, 44.7%)
CIE-LABlab(31.49, 55.83, -41.90)
CIE-LCHlch(31.49, 69.80, 323.11°)
OKLaboklab(43.43% 0.1459 -0.1175)
OKLCHoklch(43.43% 0.187 321.1)
XYZxyz(13.4460, 6.8622, 25.8104)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C188D #298D18
analogous
#42188D #7C188D #8D1864
triadic
#7C188D #8D7C18 #188D7C
tetradic
#7C188D #8D4218 #298D18 #18648D
square
#7C188D #8D4218 #298D18 #18648D
split-complementary
#7C188D #648D18 #188D42
monochromatic
#200624 #4E0F59 #7C188D #AA21C1 #C841DF

Accessibility & contrast

On white

8.85
#7C188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7C188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C188D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C188D#FFFFFF#000000##FFFFFF
##7C188D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#284E8A
Tritanopia (blue-blind)
#7D3254
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c188d;
/* rgb */ color: rgb(124, 24, 141);
/* oklch */ color: oklch(43.4% 0.187 321.1);
Tailwind
colors: {
  custom: {
    50: '#a663af',
    500: '#7c188d',
    950: '#000000',
  },
}
SCSS
$custom: #7c188d;
$custom-light: #a663af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c188d",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 291.282,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43431,
    "c": 0.18733,
    "h": 321.1
  },
  "luminance": 0.06861
}

Semantic roles & 50–950 ramp

primary
#7C188D
secondary
#54BF42
accent
#EE3A54
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C188D

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

Preview Lab → · Contrast checker → · Palette generator →

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