#7F197E#7F197E

#7F197E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.176 H 328.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7F197E
RGBrgb(127, 25, 126)
HSLhsl(301, 67%, 30%)
HSVhsv(301, 80%, 50%)
CMYKcmyk(0%, 80.3%, 0.8%, 50.2%)
CIE-LABlab(31.15, 53.50, -33.06)
CIE-LCHlch(31.15, 62.89, 328.28°)
OKLaboklab(42.98% 0.1499 -0.0916)
OKLCHoklch(42.98% 0.176 328.6)
XYZxyz(12.8658, 6.7146, 20.3530)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197E #197F1A
analogous
#4D197F #7F197E #7F194B
triadic
#7F197E #7E7F19 #197E7F
tetradic
#7F197E #7F4D19 #197F1A #194B7F
square
#7F197E #7F4D19 #197F1A #194B7F
split-complementary
#7F197E #4B7F19 #197F4D
monochromatic
#1A0519 #4C0F4B #7F197E #B223B1 #D83AD7

Accessibility & contrast

On white

8.96
#7F197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F197E
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197E#FFFFFF#000000##FFFFFF
##7F197E1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#374E7C
Tritanopia (blue-blind)
#832A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197e;
/* rgb */ color: rgb(127, 25, 126);
/* oklch */ color: oklch(43.0% 0.176 328.6);
Tailwind
colors: {
  custom: {
    50: '#a863a4',
    500: '#7f197e',
    950: '#000000',
  },
}
SCSS
$custom: #7f197e;
$custom-light: #a863a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197e",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 300.588,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42979,
    "c": 0.17566,
    "h": 328.6
  },
  "luminance": 0.06714
}

Semantic roles & 50–950 ramp

primary
#7F197E
secondary
#41B342
accent
#EA3F3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F197E

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

Preview Lab → · Contrast checker → · Palette generator →

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