#7F197F#7F197F

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

Color values

HEX#7F197F
RGBrgb(127, 25, 127)
HSLhsl(300, 67%, 30%)
HSVhsv(300, 80%, 50%)
CMYKcmyk(0%, 80.3%, 0%, 50.2%)
CIE-LABlab(31.21, 53.67, -33.60)
CIE-LCHlch(31.21, 63.32, 327.95°)
OKLaboklab(43.04% 0.1498 -0.0932)
OKLCHoklch(43.04% 0.176 328.1)
XYZxyz(12.9306, 6.7406, 20.6946)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197F #197F19
analogous
#4C197F #7F197F #7F194C
triadic
#7F197F #7F7F19 #197F7F
tetradic
#7F197F #7F4C19 #197F19 #194C7F
square
#7F197F #7F4C19 #197F19 #194C7F
split-complementary
#7F197F #4C7F19 #197F4C
monochromatic
#1A051A #4C0F4C #7F197F #B223B2 #D83AD8

Accessibility & contrast

On white

8.94
#7F197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F197F
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197F#FFFFFF#000000##FFFFFF
##7F197F1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#374E7D
Tritanopia (blue-blind)
#832B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197f;
/* rgb */ color: rgb(127, 25, 127);
/* oklch */ color: oklch(43.0% 0.176 328.1);
Tailwind
colors: {
  custom: {
    50: '#a864a4',
    500: '#7f197f',
    950: '#000000',
  },
}
SCSS
$custom: #7f197f;
$custom-light: #a864a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197f",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 300,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.43042,
    "c": 0.17645,
    "h": 328.1
  },
  "luminance": 0.0674
}

Semantic roles & 50–950 ramp

primary
#7F197F
secondary
#41B341
accent
#EA3E3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F197F

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

Preview Lab → · Contrast checker → · Palette generator →

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