#7F2188#7F2188

#7F2188 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.176 H 324.1°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7F2188
RGBrgb(127, 33, 136)
HSLhsl(295, 61%, 33%)
HSVhsv(295, 76%, 53%)
CMYKcmyk(6.6%, 75.7%, 0%, 46.7%)
CIE-LABlab(32.65, 52.70, -36.91)
CIE-LCHlch(32.65, 64.34, 325.00°)
OKLaboklab(44.25% 0.1423 -0.1029)
OKLCHoklch(44.25% 0.176 324.1)
XYZxyz(13.7398, 7.3782, 23.9882)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2188 #2A8821
analogous
#4B2188 #7F2188 #88215D
triadic
#7F2188 #887F21 #21887F
tetradic
#7F2188 #884B21 #2A8821 #215D88
square
#7F2188 #884B21 #2A8821 #215D88
split-complementary
#7F2188 #5D8821 #21884B
monochromatic
#230925 #511557 #7F2188 #AD2DB9 #C94FD4

Accessibility & contrast

On white

8.48
#7F2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7F2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2188
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2188#FFFFFF#000000##FFFFFF
##7F21881.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468B
Deuteranopia (green-blind)
#345186
Tritanopia (blue-blind)
#813453
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7f2188;
/* rgb */ color: rgb(127, 33, 136);
/* oklch */ color: oklch(44.2% 0.176 324.1);
Tailwind
colors: {
  custom: {
    50: '#a867ab',
    500: '#7f2188',
    950: '#000000',
  },
}
SCSS
$custom: #7f2188;
$custom-light: #a867ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2188",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 294.757,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44248,
    "c": 0.17561,
    "h": 324.1
  },
  "luminance": 0.07377
}

Semantic roles & 50–950 ramp

primary
#7F2188
secondary
#57B84D
accent
#E44452
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2188

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

Preview Lab → · Contrast checker → · Palette generator →

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