#7F197A#7F197A

#7F197A is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.173 H 330.3°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7F197A
RGBrgb(127, 25, 122)
HSLhsl(303, 67%, 30%)
HSVhsv(303, 80%, 50%)
CMYKcmyk(0%, 80.3%, 3.9%, 50.2%)
CIE-LABlab(30.91, 52.83, -30.92)
CIE-LCHlch(30.91, 61.22, 329.66°)
OKLaboklab(42.73% 0.1499 -0.0854)
OKLCHoklch(42.73% 0.173 330.3)
XYZxyz(12.6128, 6.6134, 19.0208)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197A #197F1E
analogous
#51197F #7F197A #7F1947
triadic
#7F197A #7A7F19 #197A7F
tetradic
#7F197A #7F5119 #197F1E #19477F
square
#7F197A #7F5119 #197F1E #19477F
split-complementary
#7F197A #477F19 #197F51
monochromatic
#1A0519 #4C0F49 #7F197A #B223AB #D83AD1

Accessibility & contrast

On white

9.04
#7F197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F197A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197A#FFFFFF#000000##FFFFFF
##7F197A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09407D
Deuteranopia (green-blind)
#3A4E78
Tritanopia (blue-blind)
#842849
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197a;
/* rgb */ color: rgb(127, 25, 122);
/* oklch */ color: oklch(42.7% 0.173 330.3);
Tailwind
colors: {
  custom: {
    50: '#a863a1',
    500: '#7f197a',
    950: '#000000',
  },
}
SCSS
$custom: #7f197a;
$custom-light: #a863a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197a",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 302.941,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42733,
    "c": 0.17256,
    "h": 330.3
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#7F197A
secondary
#41B346
accent
#EA463E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F197A

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

Preview Lab → · Contrast checker → · Palette generator →

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