#7F2199#7F2199

#7F2199 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.190 H 317.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7F2199
RGBrgb(127, 33, 153)
HSLhsl(287, 65%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17%, 78.4%, 0%, 40%)
CIE-LABlab(33.77, 55.93, -45.56)
CIE-LCHlch(33.77, 72.14, 320.83°)
OKLaboklab(45.4% 0.1406 -0.1282)
OKLCHoklch(45.4% 0.19 317.6)
XYZxyz(15.0452, 7.9003, 30.8632)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2199 #3B9921
analogous
#432199 #7F2199 #992177
triadic
#7F2199 #997F21 #21997F
tetradic
#7F2199 #994321 #3B9921 #217799
square
#7F2199 #994321 #3B9921 #217799
split-complementary
#7F2199 #779921 #219943
monochromatic
#2B0B34 #551667 #7F2199 #A92CCB #BF59DB

Accessibility & contrast

On white

8.14
#7F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2199
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2199#FFFFFF#000000##FFFFFF
##7F21991.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#7E3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7f2199;
/* rgb */ color: rgb(127, 33, 153);
/* oklch */ color: oklch(45.4% 0.190 317.6);
Tailwind
colors: {
  custom: {
    50: '#a868b8',
    500: '#7f2199',
    950: '#000000',
  },
}
SCSS
$custom: #7f2199;
$custom-light: #a868b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2199",
  "rgb": {
    "r": 127,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 287,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45402,
    "c": 0.19029,
    "h": 317.6
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#7F2199
secondary
#6DBF56
accent
#E84065
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2199

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

Preview Lab → · Contrast checker → · Palette generator →

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