#7F198B#7F198B

#7F198B is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.186 H 323.2°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7F198B
RGBrgb(127, 25, 139)
HSLhsl(294, 70%, 32%)
HSVhsv(294, 82%, 55%)
CMYKcmyk(8.6%, 82%, 0%, 45.5%)
CIE-LABlab(31.97, 55.77, -39.86)
CIE-LCHlch(31.97, 68.55, 324.45°)
OKLaboklab(43.83% 0.1489 -0.1115)
OKLCHoklch(43.83% 0.186 323.2)
XYZxyz(13.7598, 7.0722, 25.0614)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F198B #258B19
analogous
#46198B #7F198B #8B195E
triadic
#7F198B #8B7F19 #198B7F
tetradic
#7F198B #8B4619 #258B19 #195E8B
square
#7F198B #8B4619 #258B19 #195E8B
split-complementary
#7F198B #5E8B19 #198B46
monochromatic
#200623 #501057 #7F198B #AE22BF #CD41DD

Accessibility & contrast

On white

8.70
#7F198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7F198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F198B
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F198B#FFFFFF#000000##FFFFFF
##7F198B1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f198b;
/* rgb */ color: rgb(127, 25, 139);
/* oklch */ color: oklch(43.8% 0.186 323.2);
Tailwind
colors: {
  custom: {
    50: '#a864ad',
    500: '#7f198b',
    950: '#000000',
  },
}
SCSS
$custom: #7f198b;
$custom-light: #a864ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f198b",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 293.684,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43826,
    "c": 0.18604,
    "h": 323.2
  },
  "luminance": 0.07071
}

Semantic roles & 50–950 ramp

primary
#7F198B
secondary
#4FBE42
accent
#EC3B4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F198B

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

Preview Lab → · Contrast checker → · Palette generator →

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