#7C187F#7C187F

#7C187F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.176 H 326.8°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7C187F
RGBrgb(124, 24, 127)
HSLhsl(298, 68%, 30%)
HSVhsv(298, 81%, 50%)
CMYKcmyk(2.4%, 81.1%, 0%, 50.2%)
CIE-LABlab(30.57, 53.32, -34.64)
CIE-LCHlch(30.57, 63.58, 326.99°)
OKLaboklab(42.49% 0.1473 -0.0963)
OKLCHoklch(42.49% 0.176 326.8)
XYZxyz(12.4694, 6.4716, 20.6669)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C187F #1B7F18
analogous
#48187F #7C187F #7F184F
triadic
#7C187F #7F7C18 #187F7C
tetradic
#7C187F #7F4818 #1B7F18 #184F7F
square
#7C187F #7F4818 #1B7F18 #184F7F
split-complementary
#7C187F #4F7F18 #187F48
monochromatic
#19051A #4A0E4C #7C187F #AE22B2 #D538D9

Accessibility & contrast

On white

9.15
#7C187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C187F
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C187F#FFFFFF#000000##FFFFFF
##7C187F1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#334C7D
Tritanopia (blue-blind)
#802B4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c187f;
/* rgb */ color: rgb(124, 24, 127);
/* oklch */ color: oklch(42.5% 0.176 326.8);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7c187f',
    950: '#000000',
  },
}
SCSS
$custom: #7c187f;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c187f",
  "rgb": {
    "r": 124,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 298.252,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42487,
    "c": 0.17597,
    "h": 326.8
  },
  "luminance": 0.06471
}

Semantic roles & 50–950 ramp

primary
#7C187F
secondary
#43B33F
accent
#EB3D42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C187F

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

Preview Lab → · Contrast checker → · Palette generator →

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