#7A187E#7A187E

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

Color values

HEX#7A187E
RGBrgb(122, 24, 126)
HSLhsl(298, 68%, 29%)
HSVhsv(298, 81%, 49%)
CMYKcmyk(3.2%, 81%, 0%, 50.6%)
CIE-LABlab(30.15, 52.72, -34.70)
CIE-LCHlch(30.15, 63.12, 326.64°)
OKLaboklab(42.1% 0.1451 -0.0966)
OKLCHoklch(42.1% 0.174 326.3)
XYZxyz(12.1183, 6.2981, 20.3120)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187E #1C7E18
analogous
#47187E #7A187E #7E184F
triadic
#7A187E #7E7A18 #187E7A
tetradic
#7A187E #7E4718 #1C7E18 #184F7E
square
#7A187E #7E4718 #1C7E18 #184F7E
split-complementary
#7A187E #4F7E18 #187E47
monochromatic
#19051A #480E4B #7A187E #AC22B1 #D337D9

Accessibility & contrast

On white

9.29
#7A187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7A187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A187E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187E#FFFFFF#000000##FFFFFF
##7A187E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7D2B4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a187e;
/* rgb */ color: rgb(122, 24, 126);
/* oklch */ color: oklch(42.1% 0.174 326.3);
Tailwind
colors: {
  custom: {
    50: '#a462a4',
    500: '#7a187e',
    950: '#000000',
  },
}
SCSS
$custom: #7a187e;
$custom-light: #a462a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187e",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 297.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.17425,
    "h": 326.3
  },
  "luminance": 0.06297
}

Semantic roles & 50–950 ramp

primary
#7A187E
secondary
#44B23F
accent
#EB3D44
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A187E

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

Preview Lab → · Contrast checker → · Palette generator →

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