#7F197C#7F197C

#7F197C is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.174 H 329.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7F197C
RGBrgb(127, 25, 124)
HSLhsl(302, 67%, 30%)
HSVhsv(302, 80%, 50%)
CMYKcmyk(0%, 80.3%, 2.4%, 50.2%)
CIE-LABlab(31.03, 53.16, -32.00)
CIE-LCHlch(31.03, 62.05, 328.96°)
OKLaboklab(42.86% 0.1499 -0.0885)
OKLCHoklch(42.86% 0.174 329.4)
XYZxyz(12.7380, 6.6635, 19.6802)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197C #197F1C
analogous
#4F197F #7F197C #7F1949
triadic
#7F197C #7C7F19 #197C7F
tetradic
#7F197C #7F4F19 #197F1C #19497F
square
#7F197C #7F4F19 #197F1C #19497F
split-complementary
#7F197C #497F19 #197F4F
monochromatic
#1A0519 #4C0F4A #7F197C #B223AE #D83AD4

Accessibility & contrast

On white

9.00
#7F197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F197C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197C#FFFFFF#000000##FFFFFF
##7F197C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407F
Deuteranopia (green-blind)
#394E7A
Tritanopia (blue-blind)
#84294A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197c;
/* rgb */ color: rgb(127, 25, 124);
/* oklch */ color: oklch(42.9% 0.174 329.4);
Tailwind
colors: {
  custom: {
    50: '#a863a2',
    500: '#7f197c',
    950: '#000000',
  },
}
SCSS
$custom: #7f197c;
$custom-light: #a863a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197c",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 301.765,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42855,
    "c": 0.17411,
    "h": 329.4
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#7F197C
secondary
#41B344
accent
#EA433E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F197C

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

Preview Lab → · Contrast checker → · Palette generator →

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