#7A187C#7A187C

#7A187C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.173 H 327.2°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7A187C
RGBrgb(122, 24, 124)
HSLhsl(299, 68%, 29%)
HSVhsv(299, 81%, 49%)
CMYKcmyk(1.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(30.03, 52.37, -33.64)
CIE-LCHlch(30.03, 62.25, 327.28°)
OKLaboklab(41.97% 0.1452 -0.0935)
OKLCHoklch(41.97% 0.173 327.2)
XYZxyz(11.9906, 6.2470, 19.6391)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187C #1A7C18
analogous
#48187C #7A187C #7C184C
triadic
#7A187C #7C7A18 #187C7A
tetradic
#7A187C #7C4818 #1A7C18 #184C7C
square
#7A187C #7C4818 #1A7C18 #184C7C
split-complementary
#7A187C #4C7C18 #187C48
monochromatic
#19051A #480E49 #7A187C #AC22AF #D536D8

Accessibility & contrast

On white

9.34
#7A187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A187C
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187C#FFFFFF#000000##FFFFFF
##7A187C1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#334B7A
Tritanopia (blue-blind)
#7E2A4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a187c;
/* rgb */ color: rgb(122, 24, 124);
/* oklch */ color: oklch(42.0% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#a462a2',
    500: '#7a187c',
    950: '#000000',
  },
}
SCSS
$custom: #7a187c;
$custom-light: #a462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187c",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 298.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41972,
    "c": 0.17265,
    "h": 327.2
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#7A187C
secondary
#41B13F
accent
#EA3D41
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A187C

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

Preview Lab → · Contrast checker → · Palette generator →

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