#7A187D#7A187D

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

Color values

HEX#7A187D
RGBrgb(122, 24, 125)
HSLhsl(298, 68%, 29%)
HSVhsv(298, 81%, 49%)
CMYKcmyk(2.4%, 80.8%, 0%, 51%)
CIE-LABlab(30.09, 52.55, -34.18)
CIE-LCHlch(30.09, 62.68, 326.96°)
OKLaboklab(42.04% 0.1451 -0.095)
OKLCHoklch(42.04% 0.173 326.8)
XYZxyz(12.0541, 6.2724, 19.9739)
Luminance0.0627 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187D #1B7D18
analogous
#48187D #7A187D #7D184E
triadic
#7A187D #7D7A18 #187D7A
tetradic
#7A187D #7D4818 #1B7D18 #184E7D
square
#7A187D #7D4818 #1B7D18 #184E7D
split-complementary
#7A187D #4E7D18 #187D48
monochromatic
#19051A #480E4A #7A187D #AC22B0 #D437D9

Accessibility & contrast

On white

9.32
#7A187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A187D
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187D#FFFFFF#000000##FFFFFF
##7A187D1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#7E2A4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a187d;
/* rgb */ color: rgb(122, 24, 125);
/* oklch */ color: oklch(42.0% 0.173 326.8);
Tailwind
colors: {
  custom: {
    50: '#a462a3',
    500: '#7a187d',
    950: '#000000',
  },
}
SCSS
$custom: #7a187d;
$custom-light: #a462a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187d",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 298.218,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42036,
    "c": 0.17345,
    "h": 326.8
  },
  "luminance": 0.06272
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A187D

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

Preview Lab → · Contrast checker → · Palette generator →

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