#7F197D#7F197D

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

Color values

HEX#7F197D
RGBrgb(127, 25, 125)
HSLhsl(301, 67%, 30%)
HSVhsv(301, 80%, 50%)
CMYKcmyk(0%, 80.3%, 1.6%, 50.2%)
CIE-LABlab(31.09, 53.33, -32.53)
CIE-LCHlch(31.09, 62.47, 328.62°)
OKLaboklab(42.92% 0.1499 -0.0901)
OKLCHoklch(42.92% 0.175 329)
XYZxyz(12.8016, 6.6889, 20.0149)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F197D #197F1B
analogous
#4E197F #7F197D #7F194A
triadic
#7F197D #7D7F19 #197D7F
tetradic
#7F197D #7F4E19 #197F1B #194A7F
square
#7F197D #7F4E19 #197F1B #194A7F
split-complementary
#7F197D #4A7F19 #197F4E
monochromatic
#1A0519 #4C0F4B #7F197D #B223AF #D83AD5

Accessibility & contrast

On white

8.98
#7F197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F197D
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F197D#FFFFFF#000000##FFFFFF
##7F197D1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024180
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#842A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f197d;
/* rgb */ color: rgb(127, 25, 125);
/* oklch */ color: oklch(42.9% 0.175 329.0);
Tailwind
colors: {
  custom: {
    50: '#a863a3',
    500: '#7f197d',
    950: '#000000',
  },
}
SCSS
$custom: #7f197d;
$custom-light: #a863a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f197d",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 301.176,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42917,
    "c": 0.17489,
    "h": 329
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

primary
#7F197D
secondary
#41B343
accent
#EA413E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F197D

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

Preview Lab → · Contrast checker → · Palette generator →

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