#7C197E#7C197E

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

Color values

HEX#7C197E
RGBrgb(124, 25, 126)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 49%)
CMYKcmyk(1.6%, 80.2%, 0%, 50.6%)
CIE-LABlab(30.61, 52.85, -33.95)
CIE-LCHlch(30.61, 62.82, 327.28°)
OKLaboklab(42.5% 0.1465 -0.0943)
OKLCHoklch(42.5% 0.174 327.2)
XYZxyz(12.4255, 6.4876, 20.3324)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C197E #1B7E19
analogous
#4A197E #7C197E #7E194E
triadic
#7C197E #7E7C19 #197E7C
tetradic
#7C197E #7E4A19 #1B7E19 #194E7E
square
#7C197E #7E4A19 #1B7E19 #194E7E
split-complementary
#7C197E #4E7E19 #197E4A
monochromatic
#19051A #4A0F4B #7C197E #AE23B1 #D53AD8

Accessibility & contrast

On white

9.14
#7C197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7C197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C197E
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C197E#FFFFFF#000000##FFFFFF
##7C197E1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#344C7C
Tritanopia (blue-blind)
#802B4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c197e;
/* rgb */ color: rgb(124, 25, 126);
/* oklch */ color: oklch(42.5% 0.174 327.2);
Tailwind
colors: {
  custom: {
    50: '#a563a4',
    500: '#7c197e',
    950: '#000000',
  },
}
SCSS
$custom: #7c197e;
$custom-light: #a563a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c197e",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 298.812,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42495,
    "c": 0.17424,
    "h": 327.2
  },
  "luminance": 0.06487
}

Semantic roles & 50–950 ramp

primary
#7C197E
secondary
#43B241
accent
#EA3E41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C197E

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

Preview Lab → · Contrast checker → · Palette generator →

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