#7F196F#7F196F

#7F196F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.164 H 335.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7F196F
RGBrgb(127, 25, 111)
HSLhsl(309, 67%, 30%)
HSVhsv(309, 80%, 50%)
CMYKcmyk(0%, 80.3%, 12.6%, 50.2%)
CIE-LABlab(30.29, 51.08, -24.91)
CIE-LCHlch(30.29, 56.83, 334.00°)
OKLaboklab(42.09% 0.1496 -0.0681)
OKLCHoklch(42.09% 0.164 335.5)
XYZxyz(11.9695, 6.3561, 15.6323)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F196F #197F29
analogous
#5C197F #7F196F #7F193C
triadic
#7F196F #6F7F19 #196F7F
tetradic
#7F196F #7F5C19 #197F29 #193C7F
square
#7F196F #7F5C19 #197F29 #193C7F
split-complementary
#7F196F #3C7F19 #197F5C
monochromatic
#1A0516 #4C0F42 #7F196F #B2239C #D83ABF

Accessibility & contrast

On white

9.25
#7F196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F196F
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F196F#FFFFFF#000000##FFFFFF
##7F196F1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193E71
Deuteranopia (green-blind)
#3F4D6D
Tritanopia (blue-blind)
#862243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f196f;
/* rgb */ color: rgb(127, 25, 111);
/* oklch */ color: oklch(42.1% 0.164 335.5);
Tailwind
colors: {
  custom: {
    50: '#a86398',
    500: '#7f196f',
    950: '#000000',
  },
}
SCSS
$custom: #7f196f;
$custom-light: #a86398;
$custom-dark: #000000;
JSON
{
  "hex": "#7f196f",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 309.412,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42093,
    "c": 0.16432,
    "h": 335.5
  },
  "luminance": 0.06355
}

Semantic roles & 50–950 ramp

primary
#7F196F
secondary
#41B353
accent
#EA593E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F196F

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

Preview Lab → · Contrast checker → · Palette generator →

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