#7F198D#7F198D

#7F198D is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.188 H 322.4°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#7F198D
RGBrgb(127, 25, 141)
HSLhsl(293, 70%, 33%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(9.9%, 82.3%, 0%, 44.7%)
CIE-LABlab(32.10, 56.13, -40.88)
CIE-LCHlch(32.10, 69.44, 323.93°)
OKLaboklab(43.96% 0.1487 -0.1145)
OKLCHoklch(43.96% 0.188 322.4)
XYZxyz(13.9073, 7.1312, 25.8381)
Luminance0.0713 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F198D #278D19
analogous
#45198D #7F198D #8D1961
triadic
#7F198D #8D7F19 #198D7F
tetradic
#7F198D #8D4519 #278D19 #19618D
square
#7F198D #8D4519 #278D19 #19618D
split-complementary
#7F198D #618D19 #198D45
monochromatic
#210725 #501059 #7F198D #AE22C1 #CB43DE

Accessibility & contrast

On white

8.66
#7F198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F198D
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F198D#FFFFFF#000000##FFFFFF
##7F198D1.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2C4F8A
Tritanopia (blue-blind)
#813254
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f198d;
/* rgb */ color: rgb(127, 25, 141);
/* oklch */ color: oklch(44.0% 0.188 322.4);
Tailwind
colors: {
  custom: {
    50: '#a864af',
    500: '#7f198d',
    950: '#000000',
  },
}
SCSS
$custom: #7f198d;
$custom-light: #a864af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f198d",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 292.759,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43963,
    "c": 0.18766,
    "h": 322.4
  },
  "luminance": 0.0713
}

Semantic roles & 50–950 ramp

primary
#7F198D
secondary
#52BF43
accent
#ED3B51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F198D

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

Preview Lab → · Contrast checker → · Palette generator →

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