#7A187A#7A187A

#7A187A is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 328.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7A187A
RGBrgb(122, 24, 122)
HSLhsl(300, 67%, 29%)
HSVhsv(300, 80%, 48%)
CMYKcmyk(0%, 80.3%, 0%, 52.2%)
CIE-LABlab(29.90, 52.03, -32.58)
CIE-LCHlch(29.90, 61.39, 327.95°)
OKLaboklab(41.84% 0.1452 -0.0904)
OKLCHoklch(41.84% 0.171 328.1)
XYZxyz(11.8654, 6.1969, 18.9798)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A187A #187A18
analogous
#49187A #7A187A #7A1849
triadic
#7A187A #7A7A18 #187A7A
tetradic
#7A187A #7A4918 #187A18 #18497A
square
#7A187A #7A4918 #187A18 #18497A
split-complementary
#7A187A #497A18 #187A49
monochromatic
#1A051A #470E47 #7A187A #AD22AD #D735D7

Accessibility & contrast

On white

9.38
#7A187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7A187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A187A
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A187A#FFFFFF#000000##FFFFFF
##7A187A1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#354B78
Tritanopia (blue-blind)
#7E2949
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7a187a;
/* rgb */ color: rgb(122, 24, 122);
/* oklch */ color: oklch(41.8% 0.171 328.1);
Tailwind
colors: {
  custom: {
    50: '#a462a1',
    500: '#7a187a',
    950: '#000000',
  },
}
SCSS
$custom: #7a187a;
$custom-light: #a462a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a187a",
  "rgb": {
    "r": 122,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 300,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41844,
    "c": 0.17106,
    "h": 328.1
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#7A187A
secondary
#3FAF3F
accent
#EA3E3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7A187A

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

Preview Lab → · Contrast checker → · Palette generator →

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