#7F198C#7F198C

#7F198C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.187 H 322.8°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7F198C
RGBrgb(127, 25, 140)
HSLhsl(293, 70%, 32%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(9.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(32.04, 55.95, -40.37)
CIE-LCHlch(32.04, 68.99, 324.19°)
OKLaboklab(43.89% 0.1488 -0.113)
OKLCHoklch(43.89% 0.187 322.8)
XYZxyz(13.8332, 7.1016, 25.4480)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F198C #268C19
analogous
#45198C #7F198C #8C1960
triadic
#7F198C #8C7F19 #198C7F
tetradic
#7F198C #8C4519 #268C19 #19608C
square
#7F198C #8C4519 #268C19 #19608C
split-complementary
#7F198C #608C19 #198C45
monochromatic
#210624 #501058 #7F198C #AE22C0 #CC42DD

Accessibility & contrast

On white

8.68
#7F198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F198C
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F198C#FFFFFF#000000##FFFFFF
##7F198C1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#2D4F89
Tritanopia (blue-blind)
#813153
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f198c;
/* rgb */ color: rgb(127, 25, 140);
/* oklch */ color: oklch(43.9% 0.187 322.8);
Tailwind
colors: {
  custom: {
    50: '#a864ae',
    500: '#7f198c',
    950: '#000000',
  },
}
SCSS
$custom: #7f198c;
$custom-light: #a864ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f198c",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 293.217,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43894,
    "c": 0.18686,
    "h": 322.8
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#7F198C
secondary
#51BE43
accent
#ED3B4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F198C

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

Preview Lab → · Contrast checker → · Palette generator →

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